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.
Yes! To have it appear the same, you'll need to add <br /> for each carriage return. So that's one at the end of each paragraph and another for each new line.
Do you need to add a <br /> and a <p>? or just the break.
Do you need to add a <br /> and a <p>? or just the break.
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)
Quote:
Originally Posted by cartooner
..or can I dress up the Welcome Message using html..??
Totally! But see below!
Quote:
Originally Posted by phonexpo
@bchertov
Would the receiver of the e-mail see the e-mail in HTML if they had their e-mail setting to read in plain text only?
I use to e-mail my members in HTML, but some of them complained because they just saw the HTML code as they where reading the mail in plain text.
That still applies. I've help several users switch to HTML>
That still applies. I've help several users switch to HTML>
Ok, thanks bchertov. How did you help the members switch?, did you post a "How to change your e-mail setting" for each mail client on your forum?, cause that would be a good idea.
I installed it and i sent an email to myself for testing.
I wrote for example <body bgcolor="CCCCCC">My email here</body> but no change is happening.
Am i doing something wrong?Also when i put an image happening the same.
I installed it and i sent an email to myself for testing.
I wrote for example <body bgcolor="CCCCCC">My email here</body> but no change is happening.
Am i doing something wrong?Also when i put an image happening the same.
Make sure you got the pluggin enabled and that your email client is set up to display rendered HTML. I presume this should be handled. you might try with just a <b> & </b> tags or an <a> tag which I know works just fine.