Changes between Version 5 and Version 6 of Plugins/Execute
- Timestamp:
- 06/08/2010 01:16:22 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Plugins/Execute
v5 v6 97 97 message = """Put your message here 98 98 99 #You can change these 100 from_addr = "fromemail@domain.com" 101 to_addr = "myemail@domain.com" 102 smtp_srv = "smtp.myisp.com" 103 99 104 It can span multiple lines. It can also contain information by specifying 100 105 %(torrent_id)s or %(torrent_name)s""" % { … … 104 109 } 105 110 106 msg = " Subject: %s\n\n%s" % (subject, message)111 msg = "To:%s\nFrom:%s\nSubject: %s\n\n%s" % (to_addr, from_addr, subject, message) 107 112 108 smtp = smtplib.SMTP('smtp.myisp.com') 109 smtp.sendmail('fromemail@domain.com', 'myemail@domain.com', msg) 113 smtp = smtplib.SMTP(smtp_srv) 114 smtp.sendmail(from_addr, to_addr, msg) 115 smtp.quit() 110 116 }}}