[CentOS] When no MTA is installed, How to send an email with a cronjob?
Larry Martell
larry.martell at gmail.comSun Jul 21 16:49:29 UTC 2013
- Previous message: [CentOS] When no MTA is installed, How to send an email with a cronjob?
- Next message: [CentOS] Fwd: When no MTA is installed, How to send an email with a cronjob?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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_
- Previous message: [CentOS] When no MTA is installed, How to send an email with a cronjob?
- Next message: [CentOS] Fwd: When no MTA is installed, How to send an email with a cronjob?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list