Re: Sendmail User ID

From: Date: Thu, 18 Jan 2001 18:50:56 +0000
Subject: Re: Sendmail User ID
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-35450@lists.php.net to get a copy of this message
-----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 me@mydomain.com, 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" <andy@mainetoday.com> To: "Yurais Fernandez Leal" <yurais@medired.scu.sld.cu> 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="someOne@someAddress.com"; > $mailSub="This is an Email"; > $mailBody="Hope you like it." > $addHeaders="From: me@mydomain.com"); > > mail($mailTo, $mailSubject, $mailBody, $addHeaders); > > and if you need any more additional header, such as perhaps a Cc: > > $addHeaders="From: me@mydomain.com\nCc: otherGuy@somePlace.com"); > > 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-----

« previous php.general (#35450) next »