Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Help! Newsletter sends blank email to MS Outlook


Go to End


5 Posts   3507 Views

Avatar
kennymcnett

Community Member, 2 Posts

17 July 2009 at 10:59am

Edited: 17/07/2009 11:00am

Help!

My newsletter sends blank emails to MS Outlook. They appear correctly in other clients, such as gmail. My only guess is that it has something to do with how Outlook handles html email.

Anybody know a fix? Any guesses? Is the html that the newsletter module sends poorly formed or something?

Thank you!

Avatar
bummzack

Community Member, 904 Posts

17 July 2009 at 6:38pm

Hi

Are you using a custom email template or just the one that comes with SilverStripe (that's a really basic one)?
You should probably create your own template for your newsletter and make sure you use outlook compatible markup there. Here's a good website that lists compatible css styles and has other valuable information about email templates (not SilverStripe specific): http://www.campaignmonitor.com/resources/

Avatar
kennymcnett

Community Member, 2 Posts

17 July 2009 at 6:59pm

Hey, thanks for your ideas! I'm using a custom template. But, even if the CSS markup was invalid, wouldn't at least some sort of text show up in the email? It's totally blank in Outlook, but there are actually paragraphs of text in the email body. Would faulty CSS cause that?

and that is an awesome site. Definitely adding it to my bookmarks. Thx!

Avatar
_Vince

Community Member, 165 Posts

3 May 2010 at 10:07am

Yes, I'm having the same problem.

In my case, it happens when the template links to an external image (like a logo on a website) <img src=... />

If I remove the image, Outlook displays the entire template without any formatting, as in...

This is a multi-part message in MIME format.------=_NextPart_986513Content-Type: text/plain; charset="utf-8"Content-Transfer-Encoding: quoted-printableMain ExperienceKeeping Upper Hutt Informed Dear ,this is a test to see what happens. Have removed logo.------=_NextPart_986513Content-Type: text/html; charset="utf-8"Content-Transfer-Encoding: quoted-printable<html><!-- template C:/xampplite/htdocs/EUHNL/mysite/templates/email/EUHDraft.ss --><head></head><body><div id=3D"Container">=09<div id=3D"Header">=09=09<div id=3D"NLTitle" style=3D"width:400px;border:1px solid #000;">=09=09=09<h1>Main Experience<h1/>=09=09=09<h2>Keeping Upper Hutt Informed</h2>=09=09</div>=09=09<div class=3D"Clear"></div>=09</div>=09<div class=3D"body">=09=09<p>Dear ,</p>=09=09<p>this is a test to see what happens. Have removed logo.</p>=09</div></div></body></html><!-- end template C:/xampplite/htdocs/EUHNL/mysite/templates/email/EUHDraft.ss -->------=_NextPart_986513

If I send the same email to a Yahoo! account, the body is completely empty, no matter what I do.

Anyone else have this problem?

Avatar
_Vince

Community Member, 165 Posts

4 May 2010 at 8:34pm

Edited: 04/05/2010 8:35pm

I think that *part* of the problem was that I was trying to send emails from my localhost on my own PC.

Or it could have been the settings in my local php.ini. But the moral of the story is that when I tried running the newsletter from an actual online site, things worked a lot better.

I still have a couple of probs, but at least the emails are getting through and are readable.

I wish, though, that there'd been some mention of this in the readme. :P