SMTP help please
mfranklin1 at gatwick.westerngeco.slb.com
Tue Jun 7 10:25:04 CEST 2005
Ivan Shevanski wrote:
> I really can't figure out anything about the SMTP module. . .I think I'm
> in over my head( Im pretty new to python). Can someone show me a
> really(and I mean REALLY) basic tutorial for smtp or explain it?
> I want to make my program have a feedback form attached to it at the end
> which sends me the form when they're done. I don't especially want them
> to have to input all the needed details though. . .Just thought I'd put
> this in so you'd know what its for.
> Don’t just search. Find. Check out the new MSN Search!
server = smtplib.SMTP("mailserver.somewhere.com")
fromaddr = "myemail at address.org"
toaddrs = ["first at somewhere.com", "second at smewhere.com"]
msg = """Subject: Hi I'm great
Thats right I really am
server.sendmail(fromaddr, toaddrs, msg)
More information about the Python-list