[CentOS] When no MTA is installed, How to send an email with a cronjob?
Larry Martell
larry.martell at gmail.com
Sun Jul 21 16:49:29 UTC 2013
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('user at gmail.com', password)
server.sendmail(from, to, message_
More information about the CentOS
mailing list