Some subcribers receive blank message

Questions & Problems about Installing or Upgrading Version 2 phpList
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation. This is for Version 2 of phpList (the orange one).

Some subcribers receive blank message

Postby moc » 3:37am, Mon 19 Aug, 2013

I have just upgraded to Ver 3, unaware of this problem before.
A small number of subscribers report the messages arrive empty.
(two known clients are Mac 'Mail' and hotmail webmail)

When examining the source code of a blank message received by hotmail, the message is there, but not being rendered, the message body is blank.
Sample header of blank message:

x-store-info:J++/JTCzmObr++wNraA4Pa4f5Xd6uensVPzs9RuQ0dD5SxMBt7eztNYM2xNMxUi3FZs1VKS/veh7mghdIoF8IwBgx9/CMHxPyGTXFK1M87gEDgv6yHlSZLqF3MEBaTzxLs/Lj/4lTs0=
Authentication-Results: hotmail.com; spf=pass (sender IP is 27.111.92.14) smtp.mailfrom=phplist-bounce@mydomain.com; dkim=none header.d=mydomain.com; x-hmca=pass header.id=studio@mydomain.com
X-SID-PRA: studio@mydomain.com
X-AUTH-Result: PASS
X-SID-Result: PASS
X-Message-Status: sF:n
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTE7YT0wO0Q9MTtHRD0xO1NDTD0w
X-Message-Info: NhFq/7gR1vTyStDne6aWlI3Xwd4F6l172lFruAmw0T1PU/yXcIyMhvBlYvygxaEq81IfudV0SI2+2QuP/pb/e971p7HI3oN0vPSSm1lJKPeBOkVA3SB4OQLEdCkf4yes0o5eKl3cvBmyraOkcnHHJ5hwII3whnKP97wcZ+gH6fs=
Received: from mail.mydomain.com([27.111.92.14]) by COL0-MC2-F9.Col0.somewher.com with Microsoft SMTPSVC(6.0.3790.4900);
Sun, 18 Aug 2013 17:46:14 -0700
Received: by mail.mydomain.com (Postfix, from userid 500)
id A38A9CACEA4D8; Mon, 19 Aug 2013 10:46:13 +1000 (EST)
To: M123@somewhere.com
Subject: Flute Lessons-from Holland
Received: from woodwind-group.com.au [123.243.7.89] by www.mydomain.com with HTTP; Mon, 19 Aug 2013 10:46:13 +1000
Date: Mon, 19 Aug 2013 10:46:13 +1000
From: "studio@mydomain.com" <studio@mydomain.com>
Reply-To: "studio@mydomain.com" <studio@mydomain.com>
Message-ID: <4e95c87f9cda67952cd267f733a47466@www.mydomain.com>
X-Priority: 3
X-Mailer: PHPMailer 5.2.5 (https://github.com/Synchro/PHPMailer/)
X-Mailer: phpList v3.0.0
X-MessageID: 68
X-ListMember: M123@somewhere.com
Precedence: bulk
Bounces-To: phplist-bounce@mydomain.com
List-Help: <http://mydomain.com/lists/?p=preferences&uid=bc9410e669a66f14b93bc6fc9148ad4f>
List-Unsubscribe: <http://mydomain.com/lists/?p=unsubscribe&uid=bc9410e669a66f14b93bc6fc9148ad4f&jo=1>
List-Subscribe: <http://mydomain.com/lists/?p=subscribe>
List-Owner: <mailto:webmaster@mydomain.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="b1_4e95c87f9cda67952cd267f733a47466"
Return-Path: phplist-bounce@mydomain.com
X-OriginalArrivalTime: 19 Aug 2013 00:46:14.0725 (UTC) FILETIME=[820BEF50:01CE9C75]


--b1_4e95c87f9cda67952cd267f733a47466
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

click here to view on-line
=3Chttp=3A=2F=2Fmydomain.com=2Flists=2Flt.php=3Fid=3DbERUDkgDA=
UtW=3E
or download pdf
=3Chttp=3A=2F=2Fmydomain.com=2Flists=2Flt.php=3Fid=3DbERUAUgDA=
UtW=3E

Flute Tree =26 TWG present=3A
<SNIP>
For more information about this and other events at the Flute Tree
please feel free to call us on 1800 123 368 or follow us on Facebook.
=3Chttp=3A=2F=2Fmydomain.com=2Flists=2Flt.php=3Fid=3DbERVDkgDA=
UtW=3E

--
If you do not want to receive any more newsletters from Flute Tree =26 The=0A=
WGroup=2C =0Ahttp=3A=2F=2Fwww.mydomain.comu=2Flists=2Flt.ph=
p=3Fid=3DbERQRQINRQM

To update your preferences and to unsubscribe visit=0Ahttp=3A=2F=2Fwww.mydomain.com=2Flists=2Flt.php=3Fid=3DbERRRQINRQM

Forward a Message to Someone=0Ahttp=3A=2F=2Fwww.mydomain.com=2Flis=
ts=2Flt.php=3Fid=3DbERVAUgDAUtW

Visit our website www.mydomain.com
or speak to a person 1 800 123 368


-- powered by phpList=2C www.phplist.com --



--b1_4e95c87f9cda67952cd267f733a47466
Content-Type: multipart/related;
boundary="b2_4e95c87f9cda67952cd267f733a47466"

--b2_4e95c87f9cda67952cd267f733a47466
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

=3Chtml=3E=3Chead=3E=0A =3Cmeta content=3D=22text=2Fhtml=3Bcharset=3D=
UTF-8=22 http-equiv=3D=22Content-Type=22=3E=0A =3Ctitle=3E=3C=2Ftitl=
e=3E=3C=2Fhead=3E=3Cbody=3E=3Ctable border=3D=220=22=3E
=3Ctbody=3E
=3Ctr=3E
=3Ctd colspan=3D=222=22=3E
=3Cp=3E=3Cimg src=3D=22http=3A=2F=2Fwww.mydomain.com=2Femail=2F130=
<SNIP>

=3Cp=3E=26nbsp=3B=3C=2Fp=3E

=3Cp=3E=26nbsp=3B=3C=2Fp=3E
=3C=2Ftd=3E
=3C=2Ftr=3E
=3C=2Ftbody=3E
=3C=2Ftable=3E=3Cbr =2F=3E--=3Cbr =2F=3E=0AIf you do not want to receive an=
y more newsletters from Tree =26 TWG=2C =3Ca href=3D=22=
http=3A=2F=2Fwww.mydomain.com=2Flists=2Flt.php=3Fid=3DcERQRQINRQM=22=
=3EUnsubscribe=3C=2Fa=3E=3Cbr =2F=3E=0A=3Cbr =2F=3E=0ATo update your prefe=
rences and to unsubscribe visit =3Ca href=3D=22http=3A=2F=2Fwww.mydomain.com=2Flists=2Flt.php=3Fid=3DcERRRQINRQM=22 =3Ethis link=3C=2Fa=3E=3C=
br =2F=3E=0A=3Cbr =2F=3E=0AForward a Message to Someone =3Ca href=3D=22http=
=3A=2F=2Fwww.mydomain.com=2Flists=2Flt.php=3Fid=3DcERVAUgDAUtW=22 =
=3Ethis link=3C=2Fa=3E=3Cbr =2F=3E=0A=3Cbr =2F=3E=0AVisit our website =3Ca =
href=3D=22http=3A=2F=2Fwww.mydomain.com=2Flists=2Flt.php=3Fid=3DcE=
RXCkgDAUtW=22 class=3D=22url=22 target=3D=22_blank=22=3Ewww.mydomain.com=3C=2Fa=3E=3Cbr =2F=3E=0Aor speak to a person 1 800 123 368=0A=3Cp c=
lass=3D=22poweredby=22=3E=3Ca href=3D=22http=3A=2F=2Fwww.phplist.com=2Fpowe=
redby=3Futm_source=3Dpl3.0.0=26amp=3Butm_medium=3Dpoweredhostedimg=26amp=3B=
utm_campaign=3DphpList=22 title=3D=22visit the phpList website=22 =3E=3Cimg=
src=3D=22cid=3Ac2984972a063e4895dfaadb0c30c6009=22 width=3D=2270=22 height=
=3D=2230=22 title=3D=22powered by phpList version 3.0.0=2C =26copy=3B phpLi=
st ltd=22 alt=3D=22powered by phpList 3.0.0=2C =26copy=3B phpList ltd=22 bo=
rder=3D=220=22 =2F=3E=3C=2Fa=3E=3C=2Fp=3E=3Cimg src=3D=22http=3A=2F=2Fwww.mydomain.com=2Flists=2Fut.php=3Fu=3Dbc9410e669a66f14b93bc6fc9148ad4=
f=26m=3D68=22 width=3D=221=22 height=3D=221=22 border=3D=220=22 =2F=3E=3C=2F=
body=3E=3C=2Fhtml=3E

--b2_4e95c87f9cda67952cd267f733a47466
Content-Type: image/png; name="powerphplist.png"
Content-Transfer-Encoding: base64
Content-ID: <c2984972a063e4895dfaadb0c30c6009>
Content-Disposition: inline; filename="powerphplist.png"

iVBORw0KGgoAAAANSUhEUgAAAEsAAAAhCAYAAACRIVbWAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAALEgAACxIB0t1+/AAAAB50RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNS4xqx9I6wAA
DmhJREFUaIHtmntw1FWWxz+/Xz/T6aQTQgIkJgR5LGRIFDcPsSAEWEFkZSIisPIcRaTKEkEMwUGX
RRaZWlSylKPrqBDFGCXyUAqiKLUg6ADBhCRAEGQhWU1IIpru9Lt/j/2jkx/ppEOwZmoetX6rurrv
45x77/fec+65t69AN4zOyMgDFgP5gK17+f8D2IG9QPGZmprDqqpqBULnj9EZGTFAMfDrv3Tv/obx
EbC4trq6DTrI6iDqMHDbX69ff7OoBvJqq6vbxI6MYn4hqjfcRpAfhA4f9d9/zd78nWCiHljRW+nw
zPGk507T0g11VZwqLwPAZLEybtbD2PoPxP7DVY59uA2f20lK2hgSBg/jVHkZtviBZE6bzaF3tgIw
<SNIP>
+CPiDa5Z/pzocs78qLa6Oj/sWwdR0PraQVxwl5EkCQQw6A0gCMiShKIqGPQG7VDcFf6AhMFgwOvx
BK9iOnadnwtFUXB7PFgiIrQ47C8I7a3DL69oboyer2i64pf3Wb2/z/o/Z4jQ19LLyeMAAAAASUVO
RK5CYII=


--b2_4e95c87f9cda67952cd267f733a47466--


--b1_4e95c87f9cda67952cd267f733a47466--


(message is composed within phplist or pasted from dreamweaver)

Any suggestions?
Thank you
Last edited by moc on 1:03pm, Sun 25 Aug, 2013, edited 1 time in total.
moc
phpLister
 
Posts: 12
Joined: 5:08am, Thu 15 Aug, 2013

Re: Some subcribers receive blank message

Postby duncanc » 5:23am, Mon 19 Aug, 2013

Possibly caused by the embedded "powered by phplist" image. That sort of problem has been reported previously.

Try using text instead of the image. See these lines in config.php
Code: Select all
# CREDITS
# We request you retain some form of credits on the public elements of
# phpList. These are the subscribe pages and the emails.
# This not only gives respect to the large amount of time given freely
# by the developers but also helps build interest, traffic and use of
# phpList, which is beneficial to future developments.
# By default the webpages and the HTML emails will include an image and
# the text emails will include a powered by line

# If you want to remove the image from the HTML emails, set this constant
# to be 1, the HTML emails will then only add a line of text as signature
define("EMAILTEXTCREDITS",0);

duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: Some subcribers receive blank message

Postby moc » 5:37am, Mon 19 Aug, 2013

Unfortunately this didn't work.

Text only messages work fine, which suggests to me it is something to do with Content-type.
Looking at old messages that I believe worked with all reciepents;
content-type multipart/mixed

recent messages that are blank for some recieients
content-type multipart/alternative

Not sure if this is relevant, or where I can configure to send "content-type multipart/mixed" as a test?
moc
phpLister
 
Posts: 12
Joined: 5:08am, Thu 15 Aug, 2013

Re: Some subcribers receive blank message

Postby duncanc » 9:26am, Mon 19 Aug, 2013

Just to be clear. You have changed EMAILTEXTCREDITS from 0 to 1?

The multipart/alternative is correct. If you look an any other email newsletter that you have received then it will have that content type followed by a content type text/plain holding the text version then a content type text/html holding the html version.

If the email sent by phplist has a similar structure then it is correct.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: Some subcribers receive blank message

Postby moc » 9:55am, Mon 19 Aug, 2013

Thx Duncanc
yes EMAILTEXTCREDITS has been changed from 0 to 1
and the phplist logo is no longer appended to the messages.
Messages are fine with many mail clients but appear empty on hotmail-webmail (where the message can be found in the header)
and 'Mail' on mac, and maybe others I don't know about

I was just guessing at the content-type since this was the only difference I could see between messages that worked and those that appeared blank for some mail clients.
I have now also experimented with the Content-Type in class.PHPMailer.php and managed to get text only messages showing but still not able to get multipart/alternative to work in those mail clients.

Any other ideas?
Thx
moc
phpLister
 
Posts: 12
Joined: 5:08am, Thu 15 Aug, 2013

Re: Some subcribers receive blank message

Postby moc » 8:51am, Thu 22 Aug, 2013

The only solution I found was to ditch using PHPMailer, and use SMTP to send the messages
# To use a SMTP server please give your server hostname here, leave it blank to use the standard
# PHP mail() command.
define("PHPMAILERHOST",'mail.myhostname');

# in the above you can specify multiple SMTP servers like this:
# 'server1:port1;server2:port2;server3:port3' eg
#define('PHPMAILERHOST','smtp1.mydomain.com:25;smtp2.mydomain.com:2500;smtp3.phplist.com:5123');

# if you want to use smtp authentication when sending the email uncomment the following
# two lines and set the username and password to be the correct ones
$phpmailer_smtpuser = 'myusername';
$phpmailer_smtppassword = 'mypassword';

I then had the problem that the phplist page seemed to just hang during sending, and crash if I refreshed the page.
I seemed to fix this by setting up very small batches (25 emails in 30 second batches) rather than the larger ones I was initially using (250 mails over 10 minutes)
# define the amount of emails you want to send per period. If 0, batch processing
# is disabled and messages are sent out as fast as possible
define("MAILQUEUE_BATCH_SIZE",25);

# define the length of one batch processing period, in seconds (3600 is an hour)
define("MAILQUEUE_BATCH_PERIOD",30);

# to avoid overloading the server that sends your email, you can add a little delay
# between messages that will spread the load of sending
# you will need to find a good value for your own server
# value is in seconds, and you can use fractions, eg "0.5" is half a second
# (or you can play with the autothrottle below)
define('MAILQUEUE_THROTTLE',0.5);


Hope this saves someone the trial and error time I spent :-)
moc
phpLister
 
Posts: 12
Joined: 5:08am, Thu 15 Aug, 2013

Re: Some subcribers receive blank message

Postby potiron » 1:08pm, Wed 11 Sep, 2013

Hello,

I have exactly the same issue... but unfortunately your solution does not work for me.
One of the problem I've noticed is the way the HTML message is formatted, full of Hex 3D code (=3C =3D...etc).
=3C=21DOCTYPE html PUBLIC =22-=2F=2FW3C=2F=2FDTD XHTML 1.0 Transitional=2F=2F=
EN=22 =22http=3A=2F=2Fwww.w3.org=2FTR=2Fxhtml1=2FDTD=2Fxhtml1-transitional.=
dtd=22=3E=3Chtml xmlns=3D=22http=3A=2F=2Fwww.w3.org=2F1999=2Fxhtml=22=3E=3C=
head=3E=0A =3Cmeta content=3D=22text=2Fhtml=3Bcharset=3DUTF-8=22 htt=
p-equiv=3D=22Content-Type=22=3E=0A =3Ctitle=3E=3C=2Ftitle=3E=3C=2Fhe=
ad=3E=3Cbody=3E=3Cp=3E=26nbsp=3B=3C=2Fp=3E
=3Ccenter=3E
=3Cdiv id=3D=22newsletter=22 style=3D=22width=3A 590px=3B border-left-color=


And apparently you had the same issue.

In other newsletters I receive, I can see clean HTML code when looking at their code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Newsletter Septembre 2013</title>

</head>

<body style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #003300;">
<center>
Un problème d'affichage?

Any idea where the encoding is made? And how to get rid of it?

Thanks :)
Last edited by potiron on 4:18pm, Wed 11 Sep, 2013, edited 1 time in total.
potiron
PL Nut
 
Posts: 19
Joined: 12:38pm, Fri 06 Sep, 2013

Re: Some subcribers receive blank message

Postby duncanc » 1:32pm, Wed 11 Sep, 2013

See this post for how to change the encoding from quoted printable (which is creating those '=' characters in the email) to 7bit or 8bit http://forums.phplist.com/viewtopic.php?f=15&t=39568#p97188.

All those '=' are valid but most are unnecessary. Are you using a language other than English, as they don't appear in emails that I have sent? If so then you probably need to use 8bit.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: Some subcribers receive blank message

Postby potiron » 8:34am, Thu 12 Sep, 2013

duncanc wrote:See this post for how to change the encoding from quoted printable (which is creating those '=' characters in the email) to 7bit or 8bit http://forums.phplist.com/viewtopic.php?f=15&t=39568#p97188.

All those '=' are valid but most are unnecessary. Are you using a language other than English, as they don't appear in emails that I have sent? If so then you probably need to use 8bit.

Thanks duncanc.
I saw your message after posting my solution :arrow: here.
I am pretty sure I have tried all the different possibilities yesterday with 7bit, 8bit, quoted-printable, 64... with no luck... but maybe I missed that and I will double check again this morning.
In the meantime my solution works for me.

PS: the NL is sent currently in English and French. Probably Spanish and Italian in the future. Do you see an issue with my solution?

EDIT: I tried duncanc's solution and added in config/config.php:
Code: Select all
# A few people have reported problems with '=' characters being visible in received emails,
# usually with some combination of Hotmail, Outlook and Exchange.
# phplist 3 uses quoted printable as the default encoding whereas phplist 2.10.x uses 8bit,
# so you can revert to the 8bit method

define("HTMLEMAIL_ENCODING","8bit");

with not hack in PHPmailer class... and it works.

I thought I tested yesterday, but maybe not exactly this way in the config file, maybe I did it in PHPMailer which had no effet... anyaway, I implemented your simple solution, it's cleaner and then we can keep track for future usage.
potiron
PL Nut
 
Posts: 19
Joined: 12:38pm, Fri 06 Sep, 2013

Re: Some subcribers receive blank message

Postby thecompanymerchant » 10:39am, Sat 11 Jan, 2014

Have to say major thanks for

# A few people have reported problems with '=' characters being visible in received emails,
# usually with some combination of Hotmail, Outlook and Exchange.
# phplist 3 uses quoted printable as the default encoding whereas phplist 2.10.x uses 8bit,
# so you can revert to the 8bit method

define("HTMLEMAIL_ENCODING","8bit");


I just upgraded a customer to 3.0.5 (and well impressed with new styling compared to 2.x). I thought the upgrade went fine and then sent a test email to myself on hotmail and got a blank message but the same one to gmail was fine. Ive seen earlier references to issues with MS Word pasting and the conditional "if and endif" comments but that didnt apply to me as it was handwritten code. Have also seen references to the phplist image in the footer causing problems but that also didnt solve the problem. Thankfully I found this message which referred to the same =3C rather than < issue which seems to throw hotmail but the above solution works.

Happy days. Many thanks

Tony
thecompanymerchant
phpList newbie
 
Posts: 2
Joined: 11:36am, Fri 10 Jan, 2014


Return to Installing & Upgrading

Who is online

Users browsing this forum: No registered users and 3 guests