Re: When no MTA is installed, How to send an email with a cronjob?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxx', password)
        server.sendmail(from, to, message_
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux