ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

emailing html doesn't work (communicate module)

July 18, 2007 7:39pm

Subscribe [2]
  • #1 / Jul 18, 2007 7:39pm

    avroo

    164 posts

    ok, I don’t get this. I got a simple page in html with some styles, images and text and tables (newsletter). When I copy/paste it in the mail module, select html format, word wrap on or off (tried both), I get a blank email.

    I tried the same html code in my old pmachine install and it works perfectly.

    I ran through some things and discovered that it won’t come through because of LINE BREAKS. When I remove all line breaks (and the whole page is one line) the html comes through. But this is crazy right? ;p

    How can I send a normal html page?

    tia!

  • #2 / Jul 18, 2007 8:43pm

    Sue Crocker

    26054 posts

    avroo, a few questions first.

    Which version and build of EE are you on? You can find that information in the bottom of each control panel page. I need to know both items.

    When you sent out your newsletter, where did you send it to?

    Which kind of email client were you using to receive the email?

    Are regular emails that aren’t in html format coming through OK?

  • #3 / Jul 19, 2007 7:09am

    avroo

    164 posts

    version 1.6.0
    Build:  20070705

    I sent it to my own email address, personal/businbess email server (not a public address like hotmail,gmail,yahoo etc). I am using Outlook 2007.

    But I figured it out already: I had a style tag in my head. And when the style tags aren’t on the same line, it breaks up.

    Good:

    <style type=“text/css”> body { font-family: verdana; margin : 0px 0px 0px 0px; background-color: #e3e7ce; background-repeat: repeat-y; background-position: 50%; background-attachment: fixed; background-color: #f1f1f1; } a { color: #e47119; text-decoration: underline; } a:hover { color: #e47119; text-decoration: underline; } .problem { font-size: 11px; color: white; } </style>

    bad: (results in white / empty email)

    <style type=“text/css”>
    body {
    font-family: verdana;
    margin : 0px 0px 0px 0px;
    ... etc
    }

    Hope there’s an explaination for it, because like I said: pmachine is handling okay with this.

    thanks

  • #4 / Jul 19, 2007 8:34am

    Sue Crocker

    26054 posts

    But I figured it out already: I had a style tag in my head. And when the style tags aren’t on the same line, it breaks up.

    That’s kind of weird. I’ll PM you a few email addresses to send to to see if I can replicate the problem on Thunderbird, Google and the Mail thingie (I forget the real name) for Vista, and Outlook 2003.

    I don’t use Outlook 2007.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases