Thanks for a great work.
I think it's a good idea to try to make the module more modular - Use the standard drupal filters and allow to select which filters to use. This will allow me to add a new RTL filter, to allow right-to-left HTML emails (full spec). It will also allow to write a filter which will automatically add the company logo, or any other custom HTML.
A simpler way to get the same result would be to add a template option, to define the template around the HTML. It's not only HTML and BODY, sometimes it's needed to have a DIV with dir=rtl, or get the company logo on each outgoing email.
To summarize, adding a template field would be great.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | htmlmail.module_0.patch | 1.18 KB | druvision |
| #1 | htmlmail.module.patch | 2.01 KB | druvision |
Comments
Comment #1
druvision commentedHere is my patch - it allows to modify the HTML template body.
It's already working on two of my live sites - I've tested it with GMail, Yahoo Mail, and my local Thunderbird client and the mail looks great. Solves a great problem for me.
Amnon
Comment #2
Christopher Herberte commentedAmnon, I'm having trouble applying your patch. using patch 2.5.9 what options do you recommend?
Comment #3
druvision commentedmake sure the current directory is the htmlmail module directory, then just
patch htmlmail.module < htmlmail.module.patchComment #4
druvision commentedThe patch worked perfectly for version 1.0 as well.
It was a context patch.
Here is a regular diff-style patch:
diff htmlmail.module.orig htmlmail.moduleComment #5
Christopher Herberte commentedcommitted prior to 1.0
Comment #6
lameei commentedhey guys
I'm new to drupal. I need to send RTL emails but the problem is that htmlmail is not compatible with D6. so is there new solution which I'm not aware?