[Python-de] Re: [Python-de] Re: [Python-de] Plattformunabhä ngiges File-Locking

Juergen Hermann jh at web.de
Mon Sep 2 23:40:04 EDT 2002


On Mon, 2 Sep 2002 13:20:08 +0200, josef.cihal.irm at nextra.at wrote:

>def SendMail():
>	fromaddr = 'From: josef.cihal at irm.at'
>	toaddrs  = 'To: cihal at post.cz'

	fromaddr = 'josef.cihal at irm.at'
	toaddrs  = ['cihal at post.cz']

     header = "From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n" %(
     	fromaddr, string.join(toaddrs, ', '), subject)

>	server = smtplib.SMTP('mail.nextra.at') #funkcni
>	server.sendmail(fromaddr, toaddrs, 'test message')

	server.sendmail(fromaddr, toaddrs, header + 'test message')

>	server.quit()


Ciao, Jürgen






More information about the Python-de mailing list