-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
it seems you didn't understand
I tried this option, as I cited in my email I play with the options
in the mail() function.
The problem is, yes, I know that in the remote mail client the mail
appears as if sent from [EMAIL PROTECTED], but in the sendmail
connection, for example the Return-Path is set to the UID of the web
server, the problem
I live in Cuba, and here all the users can't send mails to the
internet, thera are selected users who can do so, for example user
nobody, can't send mails outside Cuba....
- ----- Original Message -----
From: "Andrew Rush" <[EMAIL PROTECTED]>
To: "Yurais Fernandez Leal" <[EMAIL PROTECTED]>
Sent: Thursday, January 18, 2001 12:22 PM
Subject: Re: [PHP] Sendmail User ID
>
> On Thursday, January 18, 2001, at 12:05 PM, Yurais Fernandez Leal
> wrote:
>
> > Should I run the web server as a different user so that the mails
> > get sent as this user instead of nobody ?
>
> no, you should do this:
>
> $mailTo="[EMAIL PROTECTED]";
> $mailSub="This is an Email";
> $mailBody="Hope you like it."
> $addHeaders="From: [EMAIL PROTECTED]");
>
> mail($mailTo, $mailSubject, $mailBody, $addHeaders);
>
> and if you need any more additional header, such as perhaps a Cc:
>
> $addHeaders="From: [EMAIL PROTECTED]\nCc: [EMAIL PROTECTED]");
>
> have a great day,
> andy
>
> :: Andrew Rush :: Lead Systems Developer :: MaineToday.com ::
> ********************************************************************
> ****** "Crippled but free, blind all the time, i was learning to
> see"
>
> - J. Garcia / R. Hunter
> ********************************************************************
> ******
>
> The views expressed herein are not necessarily those of my
> employer, but they let me have them anyway.
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
iQA/AwUBOmc7DkfSljpOGnYdEQKy3wCgof+bX7k/8EYRPPQ701LG0G1z1asAoJWH
Zxh4FGo3veHI+nfza89WWWWM
=mrax
-----END PGP SIGNATURE-----
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]