Sending mail with attachment...

Marcelo Ramos mramos at montevideo.com.uy
Mon May 15 10:07:32 EDT 2006


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 server, and cannot pipe it directly to sendmail.
>
> I have tried about 50 different ways that I have googled for in the
> last 6 hours, but none of them work, I keep on getting errors.
>
> The script runs on a Linux system.
>
> Thanks for any help.
>
>   

I have a python script in production doing what you want using smtplib 
and it works perfectly. Send us your code and the errors you are getting.


Regards.

-- 
Marcelo Ramos
Fedora Core 5 | 2.6.16
Socio UYLUG Nro 125




More information about the Python-list mailing list