Here's a nice little pluggin (No Code changes!) my programmer (Bryan Harris) came up with that sets the email type as HTML if the body of an email contains any HTML.
This is very powerful and flexible, but also a bit dangerous. This means that any email your system sends out that contains any HTML will be sent as HTML. Which means that the whole email should be formatted as HTML.
So for instance, it makes it very easy to send HTML emails from the ACP - Just include HTML in your message! Same goes for users sending private email.
You'll also need to update some of the stock phrases for the registration confirmation email, password change, etc, that contain links or other HTML, and add line breaks <br /> so they still format correctly. And while you're in there you could add your logo and other nice touches!
It's just one pluggin!
Install time: a few seconds!
This is my first published mod so go easy on me. I'm not up for a bunch of support, but it doesn't seem like much should be needed.
And I'd appreciate it if you clicked Install if you use it, and while your at it, nominate it for MOTM!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
It was active.I wrote the code with the <b> tags and it worked.
The only thing that isn't working is the background color.
I tried <b bgcolor=red> or <bgcolor=red> and didn't work.
Any ideas?
It was active.I wrote the code with the <b> tags and it worked.
The only thing that isn't working is the background color.
I tried <b bgcolor=red> or <bgcolor=red> and didn't work.
Any ideas?
Hmmm... this is a very simple mod, just a few lines. It's based on the PHP strip_tags function. I'm surprised its not catching. So a workaround would be to include a basic HTML tag in your post, such as <br />
If some one wants to run down this issue and suggest a fix, please post it here!
The <br /> will give you a carriage return with no blank line and a <p> </p> will give you both. Personally I like to code with a <br /> for every carriage return (adding an extra for a blank line)
Totally! But see below!
That still applies. I've help several users switch to HTML>
Ok ...can you give me examples on how to change the Welcome email that is sent to newbies. Also the email that is sent to members who subscribe to threads, how is that changed to HTML??
I really like the hack, but the welcome message and the subscribed threads email is a problem. Could you help??
Ok ...can you give me examples on how to change the Welcome email that is sent to newbies. Also the email that is sent to members who subscribe to threads, how is that changed to HTML??
I really like the hack, but the welcome message and the subscribed threads email is a problem. Could you help??
Are you seeing problems with those email? The stock message may work just fine as they don't include HTML. If you are having trouble with those messages please describe it.
Some members reported that the email they recieved notifying them of new posts in subscribed thread was garbled after I put in the MOD.
Some too with Welcome Message.
I was wondering if I do the Welcome message all in HTML would that work?? But how would I code it so the message addresses the new member by their username, as it does without the MOD installed.
Some members reported that the email they recieved notifying them of new posts in subscribed thread was garbled after I put in the MOD.
Some too with Welcome Message.
I was wondering if I do the Welcome message all in HTML would that work?? But how would I code it so the message addresses the new member by their username, as it does without the MOD installed.
Yes, the idea is that if any of your messages have any HTML then the whole message must be formatted in HTML. You can still use the variables that are used in the plain text message ($<varname> or {1}, etc.)