View Issue Details

IDProjectCategoryView StatusLast Update
0015165phpList 3 applicationAttachmentspublic12-11-12 13:10
Reporterwnicholls Assigned To 
Status resolvedResolutionfixed 
Product Version2.10.5 
Target Version2.11.8Fixed in Version2.11.8 
Summary0015165: update phpMailer to 5.2.1
DescriptionSend a message including an attachment. A small subset of recipients are reporting things like this:
"nothing was attached!"
"Sorry, no attachments received."
"the only thing I can click on is a small logo PPList, which does not seem to be very useful"
"Your message doesn't appear to have any newsletter attached"

They simply don't see them, or even a paperclip symbol or anything to show that there should be attachements.

I haven't been able to physically visit any of these people, and some have limited computer skills. I can tell what mail client they are using from the headers of their replies:

Known to have problems (from the X-Mailer or User-Agent headers):
  Apple Mail (2.919.2)
  Apple Mail (2.753.1)
  Microsoft Outlook Express 6.00.2900.5512
  Microsoft Outlook Express 6.00.2900.3138
  Lotus Notes Release 6.0.2CF1 June 9, 2003

Known to have received ok:
  Thunderbird (X11/20080505)
  Microsoft Windows Mail 6.0.6001.18000
  (Outlook Express on Windows 95 - yes someone is still using it!)

Of big concern to me is the apparent Outlook Express on Windows XP - which leads me to believe a huge proportion of users have not reported problems to me yet! Surely this is a very common mail client.
TagsNo tags attached.


related to 0015437 closedmichiel content-type 'multipart/related' may result in problems with attachements 
related to 0015170 resolvedmichiel Upgrading PhpMailer Class 



01-08-08 00:50

reporter   ~0050146

More.. I've gone through several theories, but one I can't investigate well is hinted at from this:

"when the messages are opened, there are no attachments that can be opened or saved ...
 In most cases, this is due to malformed MIME streams which use the Multipart/Related Content-Type. With Multipart/Related Content-Type each object or entity should be given a Content-ID referenced in the root object of the message."

Messages sent direct from Thunderbird on Windows, which I was using for mailouts, specify

 Content-Type: multipart/mixed

However emails send from PHPList are

 Content-Type: multipart/related

My limited understand of RFC2387, which I encountered for the first time just now!, suggests to me that message should actually be multipart/mixed, with the message HTML & Text embeded in a multipart/alternative + related block. Which is what thunderbird does on sending .. (I hope this formats ok)

Content-Type: multipart/mixed;

This is a multi-part message in MIME format.
Content-Type: multipart/alternative;

Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Text form of message goes here

Content-Type: multipart/related;

Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE ... ><html>
.... <img src="cid:part1.DDDDDDDD"...>

Content-Type: image/gif;
Content-Transfer-Encoding: base64
Content-ID: <part1.DDDDDDDD>
Content-Disposition: inline;

(base64 data goes here)=



Content-Type: application/pdf;
Content-Transfer-Encoding: base64
Content-Disposition: inline;

(base64 data goes here)=

I've shown an embedded image here too, like the PHPList logo. Note I believe the Content-Disposition:inline for the final attachment (the PDF) is actually wrong).

 1. The message should actually be multipart/mixed, with


01-08-08 12:05

reporter   ~0050150

I canvassed a few users.

OK reports (could read attachments just fine)
  Thunderbird (Windows/20080708)
  Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
  Microsoft Office Outlook, Build 11.0.5510
  Microsoft Outlook Express 6.00.2900.5512

More Bad reports:

Bad reports .. but the user's coped.

And from a user of Microsoft Outlook Express 6.00.2900.5512 -
" a slightly odd manifestation there.
I did receive the four attachments, and could open each and every one of them after I had opened the email.
But the list of emails did not show the usual paper clip tag to show that the email had attachments.
I have Outlook Express 6 here. ( I used to have OE 7, but after a rebuild ... dropped back to OE 6)"

 Apple Mail (2.753.1)
"My Apple Mail downloaded all your message without difficulty. The attachments did not show as icons under the body of the message, thus appearing hidden although the size of the message and the attachment line indicated that four had been downloaded. I got them out of hiding by using the attachment line 'save' button and was able to open them without any problems."

Note Outlook Express 6 goes in both the 'good' and the 'bad' camp, which possibly tells as much about the ability of the users as anything.


02-08-08 04:14

reporter   ~0050151

More info
I should mention that this is with config.php containing: define("PHPMAILER",1);

I've checked over the PHPMailer bug database, sounds a lot like their bug number 1896836 "Can't see attachments". This is marked as closed but I can't see why as there is no acknowledgement that the problem is patched.

This is a BIG issue. For me - attachments in PHPList are useless unless I only send text format mails. (I can't even send links to the files in HTML emails, unless I've missed something). And yes, I know attachments are called experimental but they've been around for a while, and I can see this particular issue mentioned in forums and bug reports over and over again. Maybe PHPMailer need a prod, since it's their bug.


22-08-08 22:52

reporter   ~0050220

I'd like to suggest a placeholder for the attachment, so if the attachment (pdf in my case) gets stripped, there can be a link to allow the read to download the file. Possible?


15-04-10 20:56

manager   ~0050906

Related to these forum threads:


30-11-11 13:08

reporter   ~0051420

I'm having this problem.
Attachments show up in the source, but not as files.

I'd be glad to help out in any way I can.
Contact me on:
hansson.daniel40 (at) gmail (dot) com
if you have any questions.


08-11-12 10:21

reporter   ~0051874

Last edited: 08-11-12 10:22

View 2 revisions

I was still having this issue in 2.11.7

It seems that various email clients handle the message differently, such that when accessing the message from one client will display the attachment, whereas on another (looking at you Apple devices) won't.

As stated above, this appears to be related to how the message is formed, and as far as I can tell is a problem with phpmailer rather than phplist itself.

Phplist 2.11.7 comes with PHPMailer 5.1, which was released in October 2009

Version 5.2.1 from the 'official reboot' of the PHPMailer project, at fixes this problem (for me and my small group of users at least).

So far, I've only included the new script by setting PHPMAILER_PATH in config.php to point to the new version.

Perhaps it'd be worth considering this version of PHPMailer for the next release?


08-11-12 11:25

administrator   ~0051875

that's brilliant, thanks. Yes, it sounds like upgrading to 5.2.1 is a good idea.

I had to hack phpMailer a little to make sure certain phpList features work, particularly the "embed uploaded images". I'll try to contribute that to the phpMailer project.