MyBB Community Forums

Full Version: email notification msg edit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
MyBB Version 1.6.0

I am trying to add HTML in the email activation notification message. So far i have tried the following but it dosen't seem to work. Any help would be greatly appreciated.

Thanks

$l['email_activateaccount'] = "Hi {1},

echo "<p><b><font color='#3333FF'>Congratulations!</font></b> Your request to 
join <a href='http://www.myopenuniversity.com/forum'>My Open University forum</a> 
has been accepted.</p>";

To complete the registration process on {2}, you will need to go to the URL below in your web browser.

{3}/member.php?action=activate&uid={4}&code={5}

If the above link does not work correctly, go to

{3}/member.php?action=activate

You will need to enter the following:
Username: {1}
Activation Code: {5}

Thank you,

echo "<p><b><font color='#3333FF'>The <a href='http://myopenuniversity.com'>My Open 
University</a> Team</font></b> - <font color='#666666'>your steps to success</font></p>
<a href='http://www.myopenuniversity.com/forum' target='_blank' />
<img alt='www.MyOpenUniversity.com - your steps to success' src='http://a.imageshack.us/img687/1073/moulogo.png' width='237' height='99'></a>";
{2} Staff";

No don't put echo in there, it's a single PHP string.

$l['email_activateaccount'] = "Hi {1},

<p><b><font color='#3333FF'>Congratulations!</font></b> Your request to 
join <a href='http://www.myopenuniversity.com/forum'>My Open University forum</a> 
has been accepted.</p>

To complete the registration process on {2}, you will need to go to the URL below in your web browser.

{3}/member.php?action=activate&uid={4}&code={5}

If the above link does not work correctly, go to

{3}/member.php?action=activate

You will need to enter the following:
Username: {1}
Activation Code: {5}

Thank you,

<p><b><font color='#3333FF'>The <a href='http://myopenuniversity.com'>My Open 
University</a> Team</font></b> - <font color='#666666'>your steps to success</font></p>
<a href='http://www.myopenuniversity.com/forum' target='_blank' />
<img alt='www.MyOpenUniversity.com - your steps to success' src='http://a.imageshack.us/img687/1073/moulogo.png' width='237' height='99'></a>
{2} Staff";

That should be better...
thanks for the reply. I tried it but it didnt work. It didnt display any error when i saved the file and requested an email activation, instead i just didnt get any email activation. Any other suggestions?
Not receiving the email won't have anything to do with this. Run this test: [Wiki: Help:Mail] (Broken link, head over to docs.mybb.com instead)
(2010-09-06, 11:27 PM)MattRogowski Wrote: [ -> ]Not receiving the email won't have anything to do with this. Run this test: [Wiki: Help:Mail] (Broken link, head over to docs.mybb.com instead)

It was working BEFORE the edit (the first reply). AND it works AFTER i remove the EDIT part(see second post). It is working now since i have resorted the original file. But i cant seem to make it work with HTML inside the messages.lang.php file Sad
it didn't send the first time for me but when I resent it, it sent. Can you check if that works for you?? Don't know why it would do that because of HTML though...
(2010-09-07, 08:06 AM)MattRogowski Wrote: [ -> ]it didn't send the first time for me but when I resent it, it sent. Can you check if that works for you?? Don't know why it would do that because of HTML though...

the notification that you get did it contain the HTML or was it w/o the HTML?
It had HTML in it but it didn't parse it in GMail.