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, Jul 21, 2013 at 02:12:55PM +0530, Indunil Jayasooriya wrote:
> Hi,
> 
> When no MTA is installed, How to send an email with a cronjob?
> 
> I have below entrty in my cronjob?
> 
> my /etc/cron.d/backup file looks like this.
> 
> MAILTO=myemail@xxxxxxxxxxx
> 15 11 * * * root /root/scripts/backup.sh
> 
> Can I send this email via SMTP server?
> 
> 
> Hope to hear from you.

There is a tool named SendEmail, which is a perl script that performs the
sending side (not receiving) of SMTP email handling. It's straightforward
to use via commandline, which is exactly what you would want to use from
a cron job:

http://caspian.dotconf.net/menu/Software/SendEmail/

-- 
---- Fred Smith -- fredex@xxxxxxxxxxxxxxxxxxxxxx -----------------------------
                      The eyes of the Lord are everywhere, 
                    keeping watch on the wicked and the good.
----------------------------- Proverbs 15:3 (niv) -----------------------------
_______________________________________________
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