View Full Version : Notification Email (HTML)
Hello vbulletin people,
I'm wondering if there's a way to customize notification email?I would like to use this feature by adding my forum logo and coloring the background. tried to add HTML to AdminCP -> Languages & Phrases -> Search in Phrases but didn't function.
Thank you.
Amin
Yellow Slider
05-27-2012, 07:38 PM
Well, there isn't an "easy" way to do this, you're gonna have to change the Content-Type header of the email to text/html for that specific notification. I actually can't, off the top of my head, think of any good reason as to why the content type is set to text/plain, but I guess there is one, so you better not make it text/html globally.
Which notifications are you talking about precisely? PM notifications?
Which notifications are you talking about precisely? PM notifications?
Hello Yellow Slider, yes I want it for PM notification and reply notification so on.
This Feature can help administrator to add more things in the email. Like Facebook and Twitter Notifications. vb notification email very basic needs to upgrade and have more easy looking and very professional email. For example Twitter not just notify you when someone retweet your tweet they also ask you to download Twitter's App to get Notification on you smartphone.
We all knew Newsletter emails might go directly to Junk box! and most of members don't like it. Also Newsletter needs more work and money to make them ready. But with Notification email members want to know all the story.
My forum sending hundreds of emails every day. I can make it much helpful for me and my members.
Why I cant' add the forum logo? why I can't add campaign banner?
I want use the notification email for ads, good looking links, and events.
Yellow Slider
05-27-2012, 08:43 PM
Well, you're gonna have to create a plugin such as this:
Hook Location: mail_start
PHP Code:
if ($vbulletin->session->vars['notificationemail'])
{
$headers .= 'Content-Type: text/html' . iif($encoding, "; charset=\"$encoding\"") . $delimiter;
}
Then you'd have to put the following line of code everywhere notifications are sent:
$vbulletin->session->vars['notificationemail'] = true;
For example, in the hook location newpost_notification_start.
Hi Yellow Slider,
I'll try this thank you very much
Amin
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.