View Single Post

  #4 (permalink)  
Old 02-03-2006
Gary Dale
 
Posts: n/a
Default Re: how to send Internet e-mail from script?

Art Werschulz wrote:
> 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.
>



Actually, I work with Debian Sarge, which is normally configured to use
Exim4 instead of SendMail. However, I have no (other) use for it in most
SOHO situations. The problem with both packages is that the
configuration is close to rocket science, even in Debian, and both are
vast overkill when all you want to do is route your outgoing e-mail to
your ISP's smtp server.
Reply With Quote