View Single Post

  #2 (permalink)  
Old 02-02-2006
Art Werschulz
 
Posts: n/a
Default Re: how to send Internet e-mail from script?

Hi.

This doesn't answer your original question, but it will allow you to send
mail. Hopefully, that's good enough.

Since you're using Linux, you should have sendmail on your computer (or you
can install it from an RPM). Should you find it necessary to reconfigure
sendmail a bit, you'll also need to install the sendmail-cf RPM.

Having done so, all you need to do is pipe your mail msg into
/usr/sbin/sendmail. In bash, something like the following will do the job:

$ /usr/sbin/sendmail -t <<EOF
To: vader@empire.org
From: luke@jedi.org

Dear Dad:

Send money.
EOF

There are also some Perl modules (Mail::whatever) that deal with email;
maybe one of them will solve the original problem.

--
Art Werschulz (8-{)} "Metaphors be with you." -- bumper sticker
GCS/M (GAT): d? -p+ c++ l u+(-) e--- m* s n+ h f g+ w+ t++ r- y?
Internet: agw STRUDEL cs.columbia.edu
ATTnet: Columbia U. (212) 939-7060, Fordham U. (212) 636-6325
Reply With Quote