Trent,

Thanks for your response. Since I am using sSMTP I think it is a little bit more
tricky. sSMTP is a sendmail emulator so it actually sends the mail to a mailhub 
(ie
a server running sendmail), and then the mail gets sent out. And since it is a 
cgi
program www-data, like you said, is the user of the process. So I guess the 
mailhub
is going to make the From: the user running the process. But I'm hoping there 
is a
way around this. Any idea's?

thanks

Trent wrote:

> To Phillip,
> [EMAIL PROTECTED] is most likely the user your process is running
> under.
> Do you have sendmail running? It's really easy to fake the from address.
>
> code snip
> ----------------------------------------
>
> $mailprog = '/usr/lib/sendmail';
> $toEmail= '[EMAIL PROTECTED]';
> open(MAIL, "|$mailprog -t");
> print MAIL "To: $toEmail\n";
> print MAIL "From: [EMAIL PROTECTED]";
> print MAIL "Subject: Hello World\n\n";
> print MAIL "This is the body\n";
> close(MAIL);
>
> ---------------------------------------
>
> Thank You,
> Trent
> [EMAIL PROTECTED]
>
> Who is John Galt?
>
> phiLLip maDDux II wrote:
> >
> > Hello,
> >
> > I have a perl program that makes a call to ssmtp on the system to send
> > out an email. When I send out the email I specify the from:  however it
> > does not work, it always makes it look like the email came from
> > [EMAIL PROTECTED]
> >
> > Does anybody have any suggestions of what I should look for? Do I need
> > to give more info to help determine the problem?
> >
> > Thank you!
> >
> > --
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
> --
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to