Re: Re: Mail Again

From: Date: Tue, 23 Apr 2002 12:55:19 +0000
Subject: Re: Re: Mail Again
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-18757@lists.php.net to get a copy of this message
Got it at Last Thank you -- Alex Francis Cameron Design 35, Drumillan Hill Greenock PA16 0XD Tel 01475 798106 afrancis@camerondesign.co.uk http://www.camerondesign.co.uk This message is sent in confidence for the addressee only. It may contain legally privileged information. Unauthorised recipients are requested to preserve this confidentiality and to advise the sender immediately of any error in transmission. Lisi <lists@shemeshdirectory.co.il> wrote in message news:5.0.0.25.0.20020423102504.00a392c0@mail.shemeshdirectory.co.il... > You can also add the following line to your code: > $header = "From: Your Name <you@domain.tld>\n"; > > and write your mail statement like this: > mail($email, $title, $comments, $header); > > You can just stick the variable $emailaddress into whichever variable is > relevant - what was that for if not the from address? > > -Lisi > > > > >There is an item in your php.ini > >sendmail_from string > >Which "From:" mail address should be used in mail sent from PHP under > >Windows. > > > >If you look at the docs for mail(), you'll see that there are > >also examples of using the fourth argument to mail() for extra headers, > >including the From: header. I am not sure whether using From: under > >Windows works in lieu of the php.ini entry. > > > >-- > >David Robley > >Temporary Kiwi! > > > >Quod subigo farinam > > > >-- > >PHP Database Mailing List (http://www.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.db (#18757) next »