Page 1 of 1
changing "from" field on receiving email
Posted: Tue Jul 10, 2012 8:24 pm
by AndyF
When I receive a notification that someone has signed my guestbook, it arrives as from "CGI-Mailer". As I have brought two licences for two different guestbooks, I would rather the from field said something along the lines of "from website A" or "from website B"
Is there a field I can adjust to make this possible ?
Re: changing "from" field on receiving email
Posted: Wed Jul 11, 2012 3:04 pm
by Klemen
You would have to edit the gbook.php file a bit. Nothing too scary though, just open gbook.php in Notepad and use "Find" to find this
exact code:
Code: Select all
,"Content-type: text/plain; charset=".$lang['enc']
Replace it with:
Code: Select all
,"From: $settings[website_title] <$settings[admin_email]>\nReply-to: $settings[admin_email]\nReturn-path: $settings[admin_email]\nContent-type: text/plain; charset=".$lang['enc']
You need to do that TWICE in the gbook.php file!
Then (unless your host is overwriting "From" header) it should say "From: Website title <
you@yourmail.com>"
Re: changing "from" field on receiving email
Posted: Wed Jul 11, 2012 5:41 pm
by AndyF
That works lovely - many thanks for your help