Is there any way to theme the emails being sent? Send as HTML emails with a banner/logo.
The plain text of the Subscription email sent is rather boring to my eyes.
I'd also like to add in ads I have on my site in the emails sent out...is that out of the realm of possabilities?
Comments
Comment #1
chiddicks commentedSince the email templates are editing using the mail_edit tool, you should be inquiring there. Right now you can't send HTML emails, but that feature has certainly been asked for by others. Perhaps in the near future it could be added.
Comment #2
mdowsett commentedthx. I suppose the issue is for Subscriptions to allow HTML emails...so I'll leave the issue here.
I have the HTML to text module installed and active now which strips out the HTML code so the Subscription emails are at least readable (plain text) but I'd rather it (Subscriptions) be able theme the email with my themes css styles.
It sounds like that is the way it should be in the first place - or at least have option to send either plain text or HTML emails. I want to embed images, etc in the emails sent out as well as clickable hyperlinks.
Comment #3
salvisI think that trying to send out HTML emails would be
a) difficult to implement correctly and satisfactorily
b) a constant source of feature requests for additional tweaking possibilities
c) a constant source of support requests of the type "why don't my emails look like I want them to?"
Just look at the discussions we're already having with the text-only format...
However, due to the modular nature of Subscriptions, it should be possible to implement subscriptions_html_mail.module as an alternative to subscriptions_mail.module, and if someone wants to develop (and support this!) as a separate add-on project, then I'll certainly help.
Comment #4
RachelNY commentedSalvis,
I change my setup to HTML email with a very simple edit:
Then I edited the templates using "Mail templates".
This whole process was very simple and does not require any additional tweaking or support as all the email customization can be done in the template file directly.
I remain, however, extremely uneasy with what I did as this is the only module I have edited directly outside of my 'theme' folder.
First, is there a way to accomplish this through a file in my 'theme' folder rather than a direct edit of the 'subscriptions_mail.module' file?
Second, as a compromise, will you add a "send email in HTML" checkbox which activates the above code with the understanding that you will not support anything outside of the base functionality and all HTML customization must be done by the admin using "Mail templates"? I think this is a reasonable compromise.
If you can't/won't add this, can you help me implement it in a way that will not mess up my upgrade path as I have done with the direct module edit?
Thanks,
Rachel
Comment #5
salvisThank you for approaching this in a pro-active way, but this is too simple. There are several issues with your solution:
I don't think you can do this in the themes folder, but if you have D6, you can create a simple module and make your desired changes in http://api.drupal.org/api/function/hook_mail/6.
Comment #6
RachelNY commentedHi salvis,
I've only been using Drupal for about 3 weeks and need the HTML mail to be able to port this particular site over ... I am not quite up to working on a module yet ... I'll leave my "brute force" solution in place until I have a chance to get a better feel for how the core systems function -- for now the email notifications look and function exactly as they need to ...
I'm looking forward to having a greater familiarity with the system and being able to jump in to help out ... For now, this sure beats custom coding everything ...
Thanks again, the Subscriptions module is definitely doing the trick here ...
Rachel
Comment #7
salvisOk, great — good luck, and see you again...
EDIT: Please keep in mind that you'll have problems as soon as someone types angle brackets (<), ampersands, or such stuff...
Hans
Comment #8
lindsay commentedCould you set up Subscriptions to support Mime Mail? http://drupal.org/project/mimemail
It just seems that the ability to send html email is already nicely wrapped in a separate module that you (salvis) don't have to maintain. And it's purpose is to support other modules.
Comment #9
lindsay commentedNever mind, I see someone else suggested this already here: http://drupal.org/node/568032
Comment #10
salvisI'm just not sure how to package that (and keep plain-text the default).
If you have any ideas then please add to the other issue.