Page 1 of 1

Can I add a header / footer to email notification

Posted: Mon Nov 19, 2012 9:16 pm
by cma2007
Script URL: http://www.bibleversusconstitution.com/ ... ition.html
Version of script: 1.7
Hosting company: ipower
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Is it possible for me to add a footer and a header to the email that notifies when the Guest book has been signed?
Thanks - Charlie

Re: Can I add a header / footer to email notification

Posted: Mon Nov 19, 2012 11:34 pm
by Henrie
Hello Charlie.

Yes it is possible.
The most easy is to add text to the language.inc.php file text strings

Code: Select all

$lang['t43']='Someone has just signed your guestbook!'; // <-- This is text inside e-mail
and

Code: Select all

$lang['t46']='End of message';
Or if you want more freedom in layout you can change code in the gbook.php file.
For the approval e-mail, the message code starts at line 939 (26 lines below /* Manually approve entries? */ code).
For the regular notification e-mail the message code starts at line 977.

Greetings,
Henrie

Re: Can I add a header / footer to email notification

Posted: Tue Nov 20, 2012 8:39 pm
by cma2007
Hi Henrie - Thanks for responding. I'm sorry I wasn't more specific. As footers / headers, I was wanting to add an image, not text. Is this possible?
Thanks - Charlie

Re: Can I add a header / footer to email notification

Posted: Tue Nov 20, 2012 8:41 pm
by Klemen
I'm afraid not, because emails are sent as plain text and not as HTML so adding images in to supported.