I mentioned a short time ago about sending emails from the command line. However, in the context of sending emails from scripts, you could only send the subject line of an email. I recently discovered that it is possible to send a scripted email message with both a subject and a body. The code is:echo "This is mail body" | mail -s "This is subject" example@example.com
While the recipient will not be able to reply to the message, this is a quick and easy way of getting notifications sent to you when something happens, or doesn't happen when it should.
MacTipper Recommends Dropbox!

10/11/09
Send Email - With Body - From the Command Line
Posted by
Oliver
at
Sunday, October 11, 2009
Labels: AppleScript, Terminal
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.