This topic is locked

Email sent by new user registration page has incorrect From address

2/18/2009 4:29:09 AM
PHPRunner General questions
D
dkasing author

I have set up a new user registration page which is set to send an acknowledgement and an activation email to users when they register. In email settings, I have include a "From" email address of an actual email user on my server - realemailuser@myserver.com. But the emails that are actually received by the registrant have a From email address of World Wide Web Owner [www@myserver.com]. Any suggestions on what I need to change to have the "From" email address display as realmailuser@myserver.com?

N
nix386 2/18/2009

Hello, if you search you will find all kinds of confusing posts and after a few hours hair pulling etc
all you need to do is set extra headers in the code for register.php located in c:\program files\phprunner\source
Find this line

mail($strEmail,##message REGMAIL_USER4##,$message);
and change it to this with your domains email address, keep in mind that remind.php has the same issue so change that one too?!
mail($strEmail,##message REGMAIL_USER4##,$message,"From: David Smith <dsmith@nobody.com>");
Caveat: you would need to change this for other projects on different domains
Reason: php.ini controls this and shared hosts are not easily configured

D
dkasing author 2/19/2009

Hello, if you search you will find all kinds of confusing posts and after a few hours hair pulling etc

all you need to do is set extra headers in the code for register.php located in c:\program files\phprunner\source
Find this line

mail($strEmail,##message REGMAIL_USER4##,$message);
and change it to this with your domains email address, keep in mind that remind.php has the same issue so change that one too?!
mail($strEmail,##message REGMAIL_USER4##,$message,"From: David Smith <dsmith@nobody.com>");
Caveat: you would need to change this for other projects on different domains
Reason: php.ini controls this and shared hosts are not easily configured


Thank you nix386. Your solution works perfectly.