Feed on
Posts
Comments

to send mail from the command-line, use the mailx utility. this works on both mac os x and linux. it’s also super-convenient for cron jobs where you want to auto-send emails; you can’t stick pine into a script.

echo “message body” | mailx -s “subject header” recipient@isp.com

nb: your message may bounce back, complaining “sender domain must exist.” if so, this means that the isp of your e-mail recipient is blocking e-mails from your machine. try sending the message to their gmail account – i’ve noticed that google doesn’t block messages from unresolvable domains.


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

3 Responses to “send mail from the command-line”

  1. on 13 Apr 2007 at 3:20 am alex

    hi nice site.

  2. on 14 Jun 2007 at 2:02 pm robert

    hi all.

  3. acord liability 25 of insurance certificate of liability insurance acord certificate 25

Did I get this wrong? Let me know!

Trackback URI | Comments RSS