How to send an email using python

Following are the steps to send an email using python: import smtplib to = ’email-to’  #enter the email id of the person whom you want to send email gmail_user = ‘Your email id’ gmail_pwd = ‘Your Password’ smtpserver = smtplib.SMTP(“smtp.gmail.com”,587) #hostname and port smtpserver.ehlo() smtpserver.starttls() smtpserver.ehlo smtpserver.login(gmail_user, gmail_pwd)   #If you get an authentication error: […]

Read More

Programming Quotes

Great things are done by a series of small things brought together Things do not happen. Things are made to happen. LIFE is what Happens while you are busy making other Plans If you always do what you’ve always done, you’ll always get what you’ve… Formal education will make you a living; self-education will make […]

Read More

Data Communication Networks-IMP Questions with answers

Compare and Contrast Analog and Digital Transmission Wave Structure –          Analog o   an analog waveform o   similar to sound and light –          Digital o   a square waveform o   only two voltage levels, each representing binary 1s and 0s Transmission –          Analog o   Transmits by modulating a carrier wave’s frequency, amplitude, or phase o   Bandwidth will […]

Read More

PHP-File Handling

File Handling fopen() The fopen() function is used to open files in PHP. Using the correct mode parameter is very important at this point, as it identifies the type of file access that will be required. Below is a list of all possible mode parameters you can use with the fopen() function. If file open […]

Read More

PHP QUESTIONS AND ANSWERS

1. What do you mean by array? Explain with example various ways to define array in PHP? 2. Explain with example: foreach loop for arrays and while loop for arrays. 3. List and explain various array operators. 4. Explain with example: Multi dimensional array. A multidimensional array is an array containing one or more arrays. […]

Read More