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

2013-07-23 Thread Arun Khan
@ Indunil Jayasooriya IIRC, in one of your follow up post, you mention that you have the Zimbra suite installed and running on *this* machine (which is why you might have had to remove the distro's default postfix in the first place). If above is true then you should try to figure out how to send

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

2013-07-23 Thread Gordon Messmer
On 07/23/2013 03:07 AM, Indunil Jayasooriya wrote: > I think your method is the easiest way. It almost certainly isn't easier than installing ssmtp. Everything that you'd have to to to get ssmtp to work you will also need to do to that python code, plus you have to manually send email for every

[CentOS] Fwd: When no MTA is installed, How to send an email with a cronjob?

2013-07-23 Thread Indunil Jayasooriya
> > > > 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('u...@gmail.com', pas