On Sun, 21 Jul 2013 14:12:55 +0530

> Indunil Jayasooriya wrote:
>
> > When no MTA is installed, How to send an email with a cronjob?
>

I usually do this:

        import smtplib
        server = smtplib.SMTP('smtp.gmail.com:587')
        server.ehlo()
        server.starttls()
        server.ehlo()
        server.login('[email protected]', password)
        server.sendmail(from, to, message_
_______________________________________________
CentOS mailing list
[email protected]
http://lists.centos.org/mailman/listinfo/centos

Reply via email to