Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • E-mail using Python script

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 492
    Comment on it

    I have posted python script for e-mail sending in python project code is given below.

    import smtplib
    sender = 'from@findnerd.com'
    receivers = ['to@todomain.com']
    
    message = """From: From Person 
    To: To Person 
    Subject: SMTP e-mail test
    
    This is a test e-mail message.
    """
    
    try:
       smtpObj = smtplib.SMTP('localhost')
       smtpObj.sendmail(sender, receivers, message)         
       print "Successfully sent email"
    except SMTPException:
       print "Error: unable to send email"

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: