Monday, April 23, 2012

Simplenews

23/4 Simplenews Installation


Installed Simplenews for the Llandudno web site.  Followed all the instructions but the e-mails were still in text.  
Installed Mimemail and its related components.  Still getting text but with HTML markups.


24/4 Getting an HTML e-mail


Disabled mimemail and enabled HTML mail  - still text


Setting HTML mail configuration under admin/config.  I set it to:

  • Use the default template
  • Use Danland (my site theme)
  • Use full HTML

RESULT : sending a test email from HTML email using HTMLmailsystem and ensuring that the mail was sent in HTML gave me an HTML result.


To get Simplenews to send a basic e-mail, you still need to set the Sitewide defalt to HTMLMailSystem.  I also added a new setting for Simplenews using simplenews as the key - I think this may mean that I can use HTMLMailSystem for some modules but not for others - but I'm not absolutely sure!


Resulting e-mail (sent as a test) : 

  • Sent the e-mail in HTML
  • Included the embedded picture
  • Included the unsubscribe facility

Using Simplenews, you modify the relevant file (htmlmail--simplenews.tpl.php) to suit your requirements (I added a blue border and a Llandudno Sports Club heading) and it should send in that format (worked for me).



No comments:

Post a Comment