[drupal-support] Sending HTML/Plain text e-mails from within drupal

Gerhard Killesreiter killesreiter at physik.uni-freiburg.de
Wed Mar 2 23:20:40 UTC 2005



On Wed, 2 Mar 2005, Stefan Nagtegaal wrote:

> My question is quite simple, only the answer gives me nightmares... :-(
>
> Is it possible to override the "User e-mail settings" - which are
> located at '?q=admin/user/configure' - so we can sent html/plain text
> e-mails with drupal?
> No matter if this could be done using a module, or whatever.. Any
> suggestions are welcome, but hacking the core code is the least option
> in my opinion..
>
> Maybe, we want to see this in drupal as a feature?
>
>
> i am using the latest Drupal HEAD.
>
> (Gerhard, I know you think they are evil, and they are.. But, the client
> is King..)

Well, it is not my client. ;)

What you could do is to abuse Drupal's ability to use an smtp library
instead of using php mail() directly. Have a look at user_mail to see what
I mean. Your smtp.inc file could do anything to that mail even adding
html.

Cheers,
	Gerhard



More information about the drupal-support mailing list