1
Anonymous
Pimping the notification emails
  • 2013/1/19 16:55

  • Anonymous

  • Posts: 0

  • Since:


The notification emails from modules are send in plain text now. Could it be possible to change the look and feel of them from within the core? I mean adding a logo or header, changing the font style or adding a footer.

I know this could be done by changing all individual mail templates, but it would be nice to change this for all notifications in a central place/ the core.

2
xoobaru
Re: Pimping the notification emails
  • 2013/1/19 20:59

  • xoobaru

  • Just can't stay away

  • Posts: 494

  • Since: 2010/12/2


I think it uses phpmailer so it might be useful to check out what it is capable of doing before compiling a wishlist of things XOOPS does with it.


3
Anonymous
Re: Pimping the notification emails
  • 2013/1/19 21:28

  • Anonymous

  • Posts: 0

  • Since:


Quote:
I think it uses phpmailer so it might be useful to check out what it is capable of doing before compiling a wishlist of things XOOPS does with it.


I am not aware of limitations with phpmail, please enlighten me!

4
xoobaru
Re: Pimping the notification emails
  • 2013/1/19 22:02

  • xoobaru

  • Just can't stay away

  • Posts: 494

  • Since: 2010/12/2


It was not so much to highlight any limitations within phpmailer itself, as it was to help identify which aspects of phpmail that XOOPS is currently not making use of. I like you am not aware of any limitations in the former myself.

5
zyspec
Re: Pimping the notification emails
  • 2013/1/19 22:27

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


phpmailer can handle sending html email. In XOOPS 2.5.5 you will need to hack the standard notification emails by modifying the ./kernel/notification.php file.

Somewhere around line 170 you should be able to add:
$xoopsMailer->setHTML();


and then you will need to modify the template(s) to include the header, logo, etc. that you want and any html "improvements" you want to make to the template (
<h2>, <b>, <i>
, etc...).

6
Anonymous
Re: Pimping the notification emails
  • 2013/1/19 22:47

  • Anonymous

  • Posts: 0

  • Since:


Quote:
and then you will need to modify the template(s) to include the header, logo, etc. that you want and any html "improvements" you want to make to the template (
<h2>, <b>, <i>
, etc...).
That's just what I like to be worked around in xoops 2.6. Sending html improved notifications without the need to alter all individual templates. The modules take care of the notification content (text) but the core arranges how they look like (header, logo, font footer etc)

7
xoobaru
Re: Pimping the notification emails
  • 2013/1/19 23:11

  • xoobaru

  • Just can't stay away

  • Posts: 494

  • Since: 2010/12/2


It would be nice for future XOOPS to make available enhanced html mail notifications (and signup, admin alert, pm forwards etc. messages too), however if a users client is set to receive in "text only" format (to filter out potentially infectious html), then the server needs to respect that and fall back to simple text mode. Even so most mail clients can create text messages from html.

8
Anonymous
Re: Pimping the notification emails
  • 2013/1/19 23:31

  • Anonymous

  • Posts: 0

  • Since:


It's not to developers to decide what coding xoops webmasters must use in site generated mails. I personally would choose for plain text with a tiny logo, but others may choose to email full blown webpages... It would be nice if xoops could offer the options to shape the emails so they fit the site identity

9
xoobaru
Re: Pimping the notification emails
  • 2013/1/20 0:07

  • xoobaru

  • Just can't stay away

  • Posts: 494

  • Since: 2010/12/2


I can think of two ways to at least open the door. Provide a few simple templates that allow image/signature assignment urls and maybe text formatting. You get a little variation with the ability to add a logo or signature. You could almost do this with what is it called, TinyMCE?.

Or for elaborate html designs, design the html page in Dreamweaver or the like, and copy/paste the html into a form the same manner it is done in a content block.

One script I work with allows you to edit and customiae the generic .tpl email templates with a web editor.

10
zyspec
Re: Pimping the notification emails
  • 2013/1/20 4:08

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Sorry flipse. I misunderstood your question. I thought you were asking if this could be done in the current version of XOOPS (2.5.5). I didn't understand this was a feature request for 2.6 and beyond.

You may want to submit this as a feature request in SVN so it can be tracked by the core developers

Login

Who's Online

126 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 126


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits