EMAIL sender address

More
14 years 5 months ago #1319 by NetEYEd
EMAIL sender address was created by NetEYEd
Is there a way for me to adjust the mail command and had the email sender address included?
At the moment the address looks like the account name of the website owner and I would like to change it to Guestbook@domain.com in stead of username@hostingprovider.servername.com .

:|

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #1325 by Pete
Replied by Pete on topic EMAIL sender address
Yes. Open the file "add.php". Find this code block (line 171):
Code:
if ($notify_admin == 1) { mail("$notify_admin_email", "$notify_subject", "$notify_message"); }

Replace it with this:
Code:
if ($notify_admin == 1) { $From_Name = "From Name"; $From_Email = "fromemail@mail.com"; $header = "From: ". $From_Name . " <" . $From_Email . ">\r\n"; mail("$notify_admin_email", "$notify_subject", "$notify_message", "$header"); }

That should do it for you.

Pete

DigiOz Webmaster
www.digioz.com

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #1348 by NetEYEd
Replied by NetEYEd on topic EMAIL sender address
Thanks Pete, sorry, it took a while for me to come back for this!

Please Log in or Create an account to join the conversation.

Time to create page: 0.117 seconds
Powered by Kunena Forum