Re: Sending mail with attachment...

2006-05-15 Thread Marcelo Ramos
Merrigan escribió: > Hi, > > I have now eventually finished my newbie-backup script and I'm very > proud of the way it functions... > > Anyways, I am looking for an easy way to use smtplib to send an email > with the output log of the script to multiple accounts. I need to use > it with a smtp serv

Re: Sending mail with attachment...

2006-05-13 Thread John Salerno
Merrigan wrote: > mesg['To'] = recievelist It's already been pointed out that this is a problem, but I just wanted to mention also that 'recieve' is misspelled, in case that affects anything, or others who might read/use the code. -- http://mail.python.org/mailman/listinfo/python-list

Re: Sending mail with attachment...

2006-05-13 Thread [EMAIL PROTECTED]
Replace: mesg['To'] = recievelist By: mesg['To'] = ', '.join(recievelist) -- http://mail.python.org/mailman/listinfo/python-list

Re: Sending mail with attachment...

2006-05-13 Thread Tim Williams
On 13 May 2006 03:13:33 -0700, Merrigan <[EMAIL PROTECTED]> wrote: > :: > > Code > :: > def mailSender(): > openlogmsg = open(completelog, 'rb') > mesg = MIMEText(openlogmsg.read()) > openlogmsg.close() > mesg['Subject'] = subject > mesg['From'] = fromaddy >

Re: Sending mail with attachment...

2006-05-13 Thread Merrigan
Hi Guys, I just wanted to post the error, and then also the coda that causes itI get this no matter what I do to this, and I don't understand it. Any help would be welcome. Thank you Error :: Traceback (most recent call last): File "/home/merrigan/projects/Backup Script/hobbitarchive.py", l

Sending mail with attachment...

2006-05-13 Thread Merrigan
Hi, I have now eventually finished my newbie-backup script and I'm very proud of the way it functions... Anyways, I am looking for an easy way to use smtplib to send an email with the output log of the script to multiple accounts. I need to use it with a smtp server, and cannot pipe it directly t