Hi everyone,

I have installed the subsequent modules into my Drupal 5.14 core:

- simplenews 5.x (latest dev)
- simplenews template 1.1 (1.2 doesn't render newsletter content correctly!)
- mimemail 5.x (latest dev that allows to send content direct via smtp)
- smtp 5.x-1.0

The function theme_simplenews_template_mail_content, as you can see, is vital to render the newsletter.

function theme_simplenews_template_mail_content($content, $newsletter_name, $issue_title, $style, $bgcolor) {

       return <<<EOT

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<HTML>

<HEAD>

<TITLE>$newsletter_name: $issue_title</TITLE>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="STYLESHEET" type="text/css" href="http://www.nuovofiscooggi.it/sites/all/themes/zen/nuovofiscooggiv6/newsletter.css">

</HEAD>

<BODY bgcolor="$bgcolor">

 

<TABLE class="simplenews-template-background" bgcolor="$bgcolor" cellpadding="0" cellspacing="0">

<TR><TD>

<TABLE class="simplenews-template-content" cellpadding="0" cellspacing="0">

<TR><TD>

$content

</TD></TR></TABLE>

</TD></TR></TABLE>

</BODY>

</HTML>

EOT;

}

In that code (extracted from simplenews_template) I have this row:

<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> 

That magically (!) disappears from the HTML output when I receive the newsletter (see attachment), raising mismatched with a lot of webmail clients (only Outlook 2003 works well, 'cause render HTML without any action by the user).

Have you any ideas regarding this behavior? Which module/core erases that row?

CommentFileSizeAuthor
#2 img.jpg138.43 KBalex72rm
code.gif38.96 KBalex72rm

Comments

sutharsan’s picture

Category: bug » support
Priority: Critical » Normal

Perhaps it is filtered out. Check mime mail, I think it does some filtering.

alex72rm’s picture

Category: support » bug
Priority: Normal » Critical
StatusFileSize
new138.43 KB

Hi again,

How you can see in the attached gif, mimemail configuration is pretty easy and I think it's correct.

I think also that is more appropriate to put this issue as "bug report/critical" 'cause without that disappeared row, the newsletter is really not readable (most of email client read the content as binary/hex!).

alex72rm’s picture

Project: Simplenews » Mime Mail

More reasonable it's a problem with Mimemail module.

Someone can help me?

Thanks a lot,
Alessandro

alex72rm’s picture

Category: bug » task
Status: Active » Closed (fixed)

It's a problem with email clients, that delete the row header.