Sorry for the missing post, but there were two identical threads and somehow when I removed one they both disappeared !

My apologies ! I am putting the posts back here as best i can:
jzimmerlin wrote: I'm making a PHP script that sends emails to cell phones using the mail() function. Even though I've set the "From" header and tried using ini_set() to change the "sendmail_from" value, the text message on the cell phone says its from "
username@circini.lunarpages.com".
Here is the code I'm using, more or less..
ini_set(sendmail_from, "
newsupdates@jeffzimmerlin.com");
$Header="From:
newsupdates@jeffzimmerlin.com\r\n";
mail("$EmailAddress", "Subject", "Body", $Header);
Any ideas?
Jeff
kthaman replied: I'm having that issue to. I am using the phpmailer script to send. The from line shows what I've said, but if you look at the headers, it shows the my account's username@lunarpages. I'd love to prevent that as well.
I think it is because it is a php script that is sending the mail instead of it being sent via smtp. Hopefully someone can answer the question.
kthaman replied again:OK, I just found a way to edit the return-path in phpmailer.
Maybe the phpmailer script would be an alternative for you?