phplist

NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1


View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015165phplist applicationAttachmentspublic01-08-08 00:3212-11-12 13:10
Reporterwnicholls 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
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
  Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022

Known to have received ok:
  Thunderbird 2.0.0.14 (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.
Attached Files

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

-  Notes
(0050146)
wnicholls (reporter)
01-08-08 00:50

More.. I've gone through several theories, but one I can't investigate well is hinted at from this:
http://www-1.ibm.com/support/docview.wss?rs=475&uid=swg21108466 [^]

"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;
 boundary="------------AAAAAAAA"

This is a multi-part message in MIME format.
--------------AAAAAAAA
Content-Type: multipart/alternative;
 boundary="------------BBBBBBBB"


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

Text form of message goes here

--------------BBBBBBBB
Content-Type: multipart/related;
 boundary="------------CCCCCCCC"

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

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

--------------CCCCCCCC
Content-Type: image/gif;
 name="test.gif"
Content-Transfer-Encoding: base64
Content-ID: <part1.DDDDDDDD>
Content-Disposition: inline;
 filename="test.gif"

(base64 data goes here)=

--------------CCCCCCCC--

--------------BBBBBBBB--

--------------AAAAAAAA
Content-Type: application/pdf;
 name="text.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="text.pdf"

(base64 data goes here)=
--------------AAAAAAAA--


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
(0050150)
wnicholls (reporter)
01-08-08 12:05

I canvassed a few users.

OK reports (could read attachments just fine)
  Thunderbird 2.0.0.16 (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.
(0050151)
wnicholls (reporter)
02-08-08 04:14

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.
(0050220)
nereus32 (reporter)
22-08-08 22:52

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?
(0050906)
h2b2 (manager)
15-04-10 20:56

Related to these forum threads:
http://forums.phplist.com/viewtopic.php?p=41051#p41051 [^]
http://forums.phplist.com/viewtopic.php?f=15&t=30909 [^]
(0051420)
cyborg666 (reporter)
30-11-11 13:08

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.
(0051874)
MikeDick (reporter)
08-11-12 10:21
edited on: 08-11-12 10:22

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 http://code.google.com/a/apache-extras.org/p/phpmailer [^] 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?

(0051875)
michiel (manager)
08-11-12 11:25


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.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker