PDA

View Full Version : php mailing...trying to change sender info.


boyzdynasty
10-10-2003, 01:18 PM
i'm using the mail function in php

mail (address, subj., body)...

when I perform this command, the reciever gets the e-mail but the sender address is...

apache@domain.com

how can I change the sender info?

I want it to be no-reply@domain.com


Thanks in advance.

butterbur
10-10-2003, 03:13 PM
If you don't have a "FROM" in your mail function then the script goes to your php.ini file for the sender, so format your mail as follows:
mail($to,$subject,$message,"FROM: your-email-address\r\n")

Regards
BB

boyzdynasty
10-10-2003, 03:18 PM
thanx. Will try. :D