Hi,
My newsletter displays in plain text on Gmail.
Here is the contents of my newsletter:
<table border="0" cellpadding="4" cellspacing="8">
<tr>
<td colspan="1" rowspan="6">
<table border="1" cellpadding="12">
<tr><td>
<a href="#Cement Weekly News"><font face="Arial,Helvetica,sans-serif">Cement Weekly News</font></a><hr>
<a href="#Climate Change News"><font face="Arial,Helvetica,sans-serif">Climate Change News</font></a><hr>
<a href="#Energy News"><font face="Arial,Helvetica,sans-serif">Energy News</font></a><hr><a href="http://www.zapiro.com/scripts/Zapiro/hfclient.isa?A=Zapiro_Live&AE1"><img src="/sites/default/files/m_thumb.jpg" /></a>
</td>
</tr>
</table>
</td>
<td bgcolor="#FFCC00">
<a name="Cement Weekly News"><font face="Arial,Helvetica,sans-serif"><strong>Cement Weekly News</strong></font></a>
</td>
</tr>
<tr>
<td bgcolor="#CCCCCC"><font face="Arial,Helvetica,sans-serif"><a href="http://www.aggregateresearch.com/articles/19529/Taylor-Concrete-recycles-waste-into-its-cement-blocks-.aspx">Taylor Concrete Products Inc. turns waste into cement blocks.</a>
In some of its products, the cement masonry block producer is replacing 20 percent of traditional Portland cement with slag cement, normally a landfilled byproduct of steel production.
The use of recycled materials can help building projects accrue points toward certification as part of the Leadership in Energy and Environmental Design program, known as LEED.</font>
</td>
</tr><table border="0" cellpadding="4" cellspacing="8">
<tr>
<td colspan="1" rowspan="6">
<table border="1" cellpadding="12">
<tr><td>
<a href="#Cement Weekly News"><font face="Arial,Helvetica,sans-serif">Cement Weekly News</font></a><hr>
<a href="#Climate Change News"><font face="Arial,Helvetica,sans-serif">Climate Change News</font></a><hr>
<a href="#Energy News"><font face="Arial,Helvetica,sans-serif">Energy News</font></a><hr><a href="http://www.zapiro.com/scripts/Zapiro/hfclient.isa?A=Zapiro_Live&AE1"><img src="/sites/default/files/m_thumb.jpg" /></a>
</td>
</tr>
</table>
</td>
<td bgcolor="#FFCC00">
<a name="Cement Weekly News"><font face="Arial,Helvetica,sans-serif"><strong>Cement Weekly News</strong></font></a>
</td>
</tr>
<tr>
<td bgcolor="#CCCCCC"><font face="Arial,Helvetica,sans-serif"><a href="http://www.aggregateresearch.com/articles/19529/Taylor-Concrete-recycles-waste-into-its-cement-blocks-.aspx">Taylor Concrete Products Inc. turns waste into cement blocks.</a>
In some of its products, the cement masonry block producer is replacing 20 percent of traditional Portland cement with slag cement, normally a landfilled byproduct of steel production.
The use of recycled materials can help building projects accrue points toward certification as part of the Leadership in Energy and Environmental Design program, known as LEED.</font>
</td>
</tr>
</table>
Here is what it should look like:
|
Cement Weekly News | |
| Taylor Concrete Products Inc. turns waste into cement blocks. In some of its products, the cement masonry block producer is replacing 20 percent of traditional Portland cement with slag cement, normally a landfilled byproduct of steel production. The use of recycled materials can help building projects accrue points toward certification as part of the Leadership in Energy and Environmental Design program, known as LEED. |
|
Cement Weekly News | |
| Taylor Concrete Products Inc. turns waste into cement blocks. In some of its products, the cement masonry block producer is replacing 20 percent of traditional Portland cement with slag cement, normally a landfilled byproduct of steel production. The use of recycled materials can help building projects accrue points toward certification as part of the Leadership in Energy and Environmental Design program, known as LEED. |
Here is what is delivered to gmail:
Content-Type: multipart/related;
type="multipart/alternative";
boundary="332f62423fec00504bcefa30c36a7fd0"
MIME-Version: 1.0
Content-Transfer-Encoding: 8Bit
X-Mailer: Drupal
Sender: info@example.co.za
Precedence: bulk
List-Unsubscribe: <http://example.dvrdns.org/example/newsletter/confirm/remove/58826f6e550t3>
This is a multi-part message in MIME format.
--332f62423fec00504bcefa30c36a7fd0
Content-Type: multipart/alternative;
boundary="9d1ef0b01d20fa8fa9274ac4eba820f2"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
--9d1ef0b01d20fa8fa9274ac4eba820f2
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Issue
*Next Newssletter*
------------------------------------------------------------------------------
#Cement Weekly News
Climate Change News #Climate Change News
#Energy News
*Cement Weekly News*
http://www.zapiro.com/scripts/Zapiro/hfclient.isa?A=Zapiro_Live&AE1
Taylor Concrete Products Inc. turns waste into cement blocks.
http://www.aggregateresearch.com/articles/19529/Taylor-Concrete-recycles-waste-into-its-cement-blocks-.aspx
In some of its products, the cement masonry block producer is replacing 20
percent of traditional Portland cement with slag cement, normally a
landfilled byproduct of steel production.
The use of recycled materials can help building projects accrue points toward
certification as part of the Leadership in Energy and Environmental Design
program, known as LEED.
...
...
AttachmentSize
http://example.dvrdns.org/example/sites/default/files/m_thumb.jpg4.79 KB
Environmental Consultant
Aron Patel B.A. Geography
Mobile: +27 72 254 7226
example
http://example.co.za
Unsubscribe from this newsletter
http://example.dvrdns.org/example/newsletter/confirm/remove/58826blockquotef6e550t3
- - - This is a test version of the newsletter. - - -
--9d1ef0b01d20fa8fa9274ac4eba820f2
Content-Type: text/html; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body id="mimemail-body">
<div id="center">
<div id="main">
<img src="Array"><p style="text-align:right;">Issue
</p>
<div style="background-image: <code>url(gold.png); backgrouThe newsletter is delivered by Gmail, but without the formatting. (Except the links which link to the correct URL).nd-repeat: repeat-x;
width: 100%; height: 9px;">
</div>
<strong>Next Newssletter</strong><hr with="50%">
<p><a href="#Cement Weekly News">Cement Weekly News</a><br><a href="#Climate Change News">Climate Change
News</a><br><a href="#Energy News">Energy News</a><a href="http://www.zapiro.com/scripts/Zapiro/hfclient.isa?A=Zapiro_Live&AE1"></a></p>
<p> <a name="Cement%20Weekly%20News"><strong>Cement Weekly
News</strong></a></p>
<p> <a href="http://www.aggregateresearch.com/articles/19529/Taylor-Concrete-recycles-waste-into-its-cement-blocks-.aspx">Taylor
Concrete Products Inc. turns waste into cement blocks.</a><br>
In some of its products, the cement masonry block producer is replacing 20
percent of traditional Portland cement with slag cement, normally a
landfilled byproduct of steel production.<br>
The use of recycled materials can help building projects accrue points toward
certification as part of the Leadership in Energy and Environmental Design
program, known as LEED.</p>
<div class="table-wrapper clearfix"><table id="attachments" class="sticky-enabled">
<thead><tr>
<th>Attachment</th>
<th>Size</th> </tr></thead>
<tbody><tr class="odd">
<td><a href="http://example.dvrdns.org/example/sites/default/files/m_thumb.jpg">m_thumb.jpg</a></td>
<td>4.79
KB</td> </tr></tbody>
</table></div>
<table style="text-align: left; width: 100%; background-color: black;" border="0" cellpadding="8" cellspacing="0"><tbody><tr>
<td style="vertical-align: top; width: 33%; color: white; font-family:
Arial,Helvetica,sans-serif;">Environmental
Consultant<br>
Aron Patel B.A. Geography<br>
Mobile: +27 72 254 7226<br>
</td>
<td style="vertical-align: top; text-align: center; color: white; font-family:
Arial,Helvetica,sans-serif;">example<br><br><a href="http://example.co.za">http://example.co.za</a><br>
</td>
<td style="vertical-align: top; width: 33%;"> <br>
</td>
</tr></tbody></table>
<p class="newsletter-footer"><a href="http://example.dvrdns.org/example/newsletter/confirm/remove/58826f6e550t3">Unsubscribe
from this newsletter</a></p>
- - - This is a test version of the newsletter. - - -
</div>
</div>
</body>
</html>
--9d1ef0b01d20fa8fa9274ac4eba820f2--
--332f62423fec00504bcefa30c36a7fd0
Content-ID: <ee845d6464f026f32338fcbb23e20e9a@example.dvrdns.org>
Content-Type: image/jpeg; name="m_thumb.jpg"
Content-Disposition: attachment; filename="m_thumb.jpg"
Content-Transfer-Encoding: base64
/9j/4AAQSkZJRgABAQEBLAEsAAD//gAeTEVBRCBUZWNobm9sb2dpZXMgSW5jLiBWMS4wMf/bAEMA
BQMEBAQDBQQEBAUFBQYHDAgHBwcHDwsLCQwRDxISEQ8RERMWHBcTFBoVEREYIRgaHR0fHx8TFyIk
...
...
Z//Z
--332f62423fec00504bcefa30c36a7fd0--
There appears to be 2 versions of my newsletter: one without the formatting and one with formatting.
However all the table tags appear to have been stripped out.
What am I doing wrong?
The newsletter is delivered by Gmail, but without the formatting. (Except the links which link to the correct URL).
Comments
Comment #1
sgabe commentedI copied and pasted your HTML code into my test site and sent a test message. I could not reproduce, the message came through and displays just fine in GMail.
Comment #2
davecoventry commentedAarrgh!
So my configuration is incorrect.
Can you suggest anything I might do in the way of troubleshooting?
Comment #3
heliod commentedI am having the same issue, but with version 5.x. All the HTML content sent by Mime Mail is stripped by GMail and some other services (including Blackberry). Users of these services (GMAIL, walla in Israel and Blackberry) receive the mails with a title and no content.
Searching at the Internet for this problem, I have found this article at
http://www.bestpsdtohtml.com/tips-to-convert-psd-designs-into-html-email...
which claims it is a well known problem that HTML mail services don't want our HTML to mess-up theirs, so they clean everything within DOCTYPE, HEAD, BODY, etc......
The article gives us some tips on how to fix this using other services, but since we are using Mime Mail this is the service that should do the cleaning.
I have no idea how to get out of this, and with 3 sites using Mime Mail I am surely expecting a solution.....
Helio
Comment #4
sgabe commented@heliod: You should update to Drupal 6 and use the latest HEAD for testing. I am not sure if the latest changes will be ported to 5.x, but it is Allie's decision. However we have the CSS Compressor to convert CSS styles into inline style attributes.
@davecoventry: Please, use the latest HEAD and try on a clean install with different email clients. You should use the CSS Compressor to preserve your styles in clients which do not support CSS styles like GMail.
Comment #5
davecoventry commentedsgabe,
Thanks for your assistance.
I had 'Filtered HTML' selected for the Newsletter Input Type.
Sorry to be a nuisance.
Comment #6
sgabe commented@davecoventry: I am glad to hear that you have solved the problem. You may set this issue to fixed then.
Comment #7
sgabe commentedComment #8
neopulse commentedI have the same trouble, with alpha3 and alpha4 version And Im using the full html format for input the news.
It happens in gmail, yahoo, mozilla thunderbird.
Any ideas????
Comment #9
neopulse commentedI make it active again, sorry
Comment #10
dkruglyak commentedI have the same problem and I just upgraded to the latest alpha4.
This is clearly a bug because module generates emails that are not displayed correctly. This happens with SMTP module on and with simple test email through contact form.
I suspect this is some kind of improper use of multipart email headers, but not sure what is causing it and how to fix it. Notice that headers of the email message claim "multipart/related" content type, while the message itself contains "multipart/alternative".
Anyone has any ideas?
Comment #11
sgabe commentedThose who are using SMTP module, please proceed here #727744: Missing boundary delimiter in multipart/related e-mails with SMTP and MimeMail, thank you.
Comment #12
dkruglyak commentedThanks, the patch solved the problem. I think other posters should validate whether they have been using SMTP module as well.
Comment #13
davecoventry commentedComment #14
phi11 commentedThanks for help mates ill use it on my magazine