No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
[CODE]#!/usr/bin/python import smtplib sender = 'from@fromdomain.com' receivers = ['to@todomain.com'] message = """From: From Person <from@fromdomain.com> To: To Person <to@todomain.com> Subject: SMTP e-mail test This is a test e-mail message. """ try: smtpObj = smtplib.SMTP('smtp.gmail.com') smtpObj.sendmail(sender, receivers, message) print "Successfully sent email" except smtplib.SMTPException: print "Error: unable to send email" [/CODE] … | |
I have to create a list with a menu options for 1. Add, 2. Remove, 3. Check if element exists, 4.Display list, 5. would you like to Continue? 6. Exit I could write the code so far. Pls help me complete it. (ASAP) [CODE]fruits = ['Apple', 'Banana', 'Grapes', 'Peach'] #while … |
The End.