Hi people, i am sending a welcome email to my users when they sign up, only its from "anonymous@isp.com". How can i change it to "myemail@mysite.com"?
i use it like this;
mail("user@usersisp.com", "Welcome", "email text");
$header = "From: myemail@mysite.com\r\n";
mail("user@usersisp.com", "Welcome", "email text",$header);
http://www.php.net/manual/en/function.mail.php
I believe the php.ini file has a variable called "sendmail_from" which should be set to your email address.(This is under a windows system anyway, not sure about unix etc.)