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
    • 462
    Comment on it

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

    import smtplib
    sender = ''
    receivers = ['']
    message = """From: From Person 
    To: To Person 
    Subject: SMTP e-mail test
    This is a test e-mail message.
       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

Sign up using

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: