This topic is locked

how to change the 'From' admin email address

9/20/2005 3:24:58 AM
PHPRunner General questions
D
dxoxb author

Hi,
How do change the "From" admin email address, ie, when a user register, the user will recieve the email from the admin, we want to change that "from" address.
tks & rdgs

Sergey Kornilov admin 9/20/2005

Hi,
the "From" address for email sending is specified by sendmail_from PHP configuration option. So you can insert the following line before a call to mail() function in register.php or remind.php:

ini_set("sendmail_from", "admin@domain.com");
C
cjb 11/24/2007

I need to change the "from" email address and have tried inserting [ini_set("sendmail_from", "admin@domain.com");] in the AfterAdd function. But my "from" address does not change.
I am setting up an autoresponder from a form and wish to change the "from" email depending on the form data. I use phprunner 4.1 and the supplied "send simple email" routine.
Hope someone can help me soon! I am spending hours each day manually replying to forms.

Alexey admin 11/26/2007

Hi,
try to modify mail function call in the code:

mail($email, $subject, $message,"From: Admin <admin@domain.com>");

C
cjb 11/26/2007

FANTASTIC!
Your support is priceless! I now have a fully automated autoresponder.