Hi Ben, Thanks for your reply. Actually i did find a solution, and it is like this :
mail($to,$subject,$message,"From: [EMAIL PROTECTED]\nReply-To: [EMAIL PROTECTED]\nX-Mailer:PHP/" . phpversion()); The quotes could have been a problem so i did remove them. But the real thing were the Headers in the end. They work perfectly. Replace the Server Name and also put in the extra Reply-TO feature! Thanks again! T. Edison Jr. --- Ben Clumeck <[EMAIL PROTECTED]> wrote: > I would try the following: > > mail("$to", "$subject", "$message", "From: $from"); > > instead of : > > mail($to, $subject, $message, "From: $from"); > > I had a similar problem because I didn't have > everything in quotes. > > Ben > > -----Original Message----- > From: Thomas Edison Jr. > [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 24, 2001 10:36 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Changing "From" Info in eMail! > > > Hi, > > I'm using the mail() function to send email. > However, > when the reciever recieves the email, my Servers > name > comes up in the "From" in his MailBox and also > inside > the email, even after defining the "From: " in the > mail function. How do i change this From info?? > > This is what i'm using : > mail($to, $subject, $message, "From: $from"); > > Thanks! > T. Edison jr. > > > ===== > Rahul S. Johari (Director) > ****************************************** > Abraxas Technologies Inc. > Homepage : http://www.abraxastech.com > Email : [EMAIL PROTECTED] > Tel : 91-4546512/4522124 > ******************************************* > > __________________________________________________ > Do You Yahoo!? > Send your FREE holiday greetings online! > http://greetings.yahoo.com > > -- > 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] > > ===== Rahul S. Johari (Director) ****************************************** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 ******************************************* __________________________________________________ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- 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]