Friday, July 31, 2009

Send mail from the terminal in Untangle

Untangle routers are already configured to send out emails for use with the Reports module. However, Untangle is still a Linux machine. It happens to be based on Debian. If you want to send out email messages for you own purposes, you can do so from the command line. The syntax looks like this:
$ echo "This is my message" | mail -s "Subject" phil@mydomain.com
This would send an email to phil@mydomain.com that has a subject of "Subject" and a body of "This is my message". Specifying a subject is optional.

No comments:

Post a Comment