At 00:48 24-1-2003, you wrote:
hello friends,Did you try to add the values to the 'extra headers' parameter?
I am hosted with an ISP called Apexon. I have written php scripts to send mail from a webpage. When I send this mail, the from address becomes [EMAIL PROTECTED] . Their website says that the variable sendmail_from is [EMAIL PROTECTED] . I want to force my own from address in this. I also want to change the sender's name to my name rather than my website name.
I have tried many ways, but not successful. Can someone help me?
Some ISPs restrict what you can change in mail().
In that case i'm afraid you need to find another SMTP server.
You cannot set the default SMTP server in php.ini because that is obviously under control by the ISP. I did not try but i think there must be ways to change the SMTP in a .htaccess file. But .htaccess is not allowed by every ISP. So maybe you need your own mail function. Such things could be available on script libraries.
I think a good start would be to read the user annotations in the online PHP manual on www.php.net.
Chris H
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php