[plug] How to send a mail with binary attachment from a script in CentOS?

Jeremy Kerr jk at ozlabs.org
Fri Feb 4 14:56:36 WST 2011


Hi Fred,

> I am looking for a script to send an email every day with a binary
> attachment from CentOS.

[snip]

> base64

bingo! This will convert your binary file into text that can be mailed.

Alternatively, you have python installed; in the email.mime package, there's 
an example of how to generate a mail with attached files:

 http://docs.python.org/library/email-examples.html

Cheers,


Jeremy



More information about the plug mailing list