[H-GEN] Email "from"
Martin Pool
martinp at mincom.com
Mon May 10 23:17:15 EDT 1999
(Note reply-to: being general at humbug.org.au vs Martin Pool <martinp at mincom.com>)
Luke Grant wrote:
> i currently have the email being sent in the following format.
>
> >open(MAIL,"somemailfile");
> >print MAIL "the email";
> >close(MAIL);
> >
> >open(STDIN, "thesamemailfile");
> >system("mail","-s","subject","recipient at host");
>
> of course the reader recieves the email and the "from" line contains
> apache at myhost.com
It's probably better to call sendmail(8) directly. IIRC many varieties
recognize a -f option to set the From line (or just emit your own
header), and if you make apache a trusted user you can use -bs IIRC to
set the 'Sender' line.
--
/\\\ Mincom | Martin Pool | martinp at mincom.com
// \\\ | Software Engineer | Phone: +61 7 3303-3333
\\ /// | Mincom Pty. Ltd. |
\/// | Teneriffe, Brisbane | Speaking for myself only
--
This is list (humbug) general handled by majordomo at lists.humbug.org.au .
Postings only from subscribed addresses of lists general or general-post.
More information about the General
mailing list