When I send a message with an attachment, the message is delivered, however the body is empty and the file is not attached. Usine Firefox 2.0.0.9. BCC is disabled.

Comments

bambangfals’s picture

i've same this problem...
what solutions for this bug???
thanks

JonDubya’s picture

No response?

JonDubya’s picture

duplicate post...ignore.

JonDubya’s picture

Update...
If sending via Plain Text, the attachment is displayed as it's bitcode...example:

--d2dd48462977d1448ddd3c9ad7e8ffb0
Content-Type: text/plain; charset=UTF-8; format=flowed

Plain text body.

--d2dd48462977d1448ddd3c9ad7e8ffb0
Content-Transfer-Encoding: base64
Content-Type: application/octet-stream; name="forumlogo.jpg"
Content-Disposition: attachment; filename="forumlogo.jpg"

/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwM
DAwMEAwODxAPDgwTExQUExMcGxsbHCAgICAgICAgICD/2wBDAQcHBw0MDRgQEBgaFREVGiAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICD/wAARCABiAP0DAREA

...

lFKzDWOWaOrGxtbbbSEKSkBXUDWG6dmdWiAjhF2c6DJhGMFTxhB0GTCMcMIQdBkQgwZMKxwyYRjI
KmEGP//Z

--d2dd48462977d1448ddd3c9ad7e8ffb0--

/end of message body.

oadaeh’s picture

Status: Active » Fixed

I've committed changes to the head of the 2.x branch that I believe will correct this problem. Please check it out and verify if it does or not. I am hoping to cut a new release soon, if you want to wait until then.

JonDubya’s picture

Updated the file. It now does what I stated in post #4 in both HTML and Plain Text formats. I don't have time to look into it right now, but my best guess is still something is up with the header format. Here's Outlook's detailed header info:

Return-Path:
Delivered-To:
X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on jwitech.com
X-Spam-Level:
X-Spam-Status: No, score=0.5 required=7.0 tests=AWL,HTML_MESSAGE,NO_RELAYS
autolearn=ham version=3.2.3
Received: (qmail 18979 invoked by uid 48); 28 Jan 2008 19:22:06 -0800
Date: 28 Jan 2008 19:22:06 -0800
Message-ID: <20080129032206.18976.qmail@jwitech.com>
To:
Subject: Test new module
Errors-To: Webmaster [at] etanudsp.org
From: Eta Nu Chapter of Delta Sigma Pi
Content-Type: multipart/alternative;
charset=utf-8;
boundary="a5af6247a3ffe5e1d96b5e1f81ac8ac4"
MIME-Version: 1.0
Content-Transfer-Encoding: 8Bit
X-Mailer: Drupal
Sender: Webmaster [at] etanudsp.org
Reply-To: Eta Nu Chapter of Delta Sigma Pi
X-AntiVirus: checked by AntiVir MailGuard (Version: 7.0.1.66; AVE: 7.6.0.56; VDF: 7.0.2.52)

replaced @s with [at]s and removed recipient email addresses.

JonDubya’s picture

Status: Fixed » Active
oadaeh’s picture

This looks like a problem with the way Outlook renders the messages, as I don't have that problem using Kmail, Thunderbird or the Basic webmail module. Since I don't have Outlook, it will be difficult for me to do anything about it, but I will see if I can find anything on the Internet about it.

JonDubya’s picture

Problem is replicated using gmail as well.

oadaeh’s picture

Ah, Gmail! I forgot I had a Gmail account. And I have a Yahoo, AIM & Hotmail account. (I don't use any of them much.) So, I sent a Mass Contact e-mail w/attachment to all four. Hmm. It works fine there as well.

Okay. Let's try a different route. What other contrib modules do you have installed, JonDubya? Mime Mail maybe, what else?

JonDubya’s picture

Mail related:
Mime Mail
Personalized Mail
Simplenews

Jeff Burnz’s picture

Heres what I get in gmail.

--ed3174377a0365600bb4a24c1409e516
Content-Type: text/html; charset=UTF-8; format=flowed

admin has sent you a group e-mail from Women Talking.

This is just a test mail using the new mass contact form, I have made an
attachment (PDF) also.

Let me know if you receive this.

Regards,

Jeff

--ed3174377a0365600bb4a24c1409e516
Content-Transfer-Encoding: base64
Content-Type: application/octet-stream; name="test-attachment.pdf"
Content-Disposition: attachment; filename="test-attachment.pdf"

JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURl
Y29kZT4+CnN0cmVhbQp4nHVQy2oDMQy871fo3IM747chFHaTzT2w0B/oA3oINJf+frX2PkIgCIwZ
aUajgfx1vwKBoYQSjJPsaYrcPuX9Ra6tp3X77oapo4WxkkLW6elDXs8Uxvn/JQfwTaafLpuo49o8...

I have Mime Mail, Subscriptions and Send enabled also.

Here is the header:

Delivered-To: my-email@gmail.com
Received: by 10.142.217.20 with SMTP id p20cs352832wfg;
        Wed, 30 Jan 2008 11:00:30 -0800 (PST)
Received: by 10.142.80.7 with SMTP id d7mr590547wfb.60.1201719630233;
        Wed, 30 Jan 2008 11:00:30 -0800 (PST)
Return-Path: <nobody [at] vps1.womentalking.co.uk>
Received: from vps1.womentalking.co.uk (54-133-82-80.ldn.kgix.net [80.82.133.54])
        by mx.google.com with ESMTP id g3si1503141wra.7.2008.01.30.11.00.27;
        Wed, 30 Jan 2008 11:00:30 -0800 (PST)
Received-SPF: neutral (google.com: 80.82.133.54 is neither permitted nor denied by best guess record for domain of nobody [at] vps1.womentalking.co.uk) client-ip=80.82.133.54;
Authentication-Results: mx.google.com; spf=neutral (google.com: 80.82.133.54 is neither permitted nor denied by best guess record for domain of nobody [at] vps1.womentalking.co.uk) smtp.mail=nobody@vps1.womentalking.co.uk
Received: from nobody by vps1.womentalking.co.uk with local (Exim 4.68)
	(envelope-from <nobody [at] vps1.womentalking.co.uk>)
	id 1JKIAK-0001a8-4a; Wed, 30 Jan 2008 19:00:08 +0000
To: my-email@gmail.com
Subject: Test Mass Contact with Attachment
Errors-To: my-email@gmail.com
From: my-email@gmail.com
Content-Type: multipart/related;
    charset=utf-8;
    boundary="072ff69eb6e30bc55b5ed2fe37a19d84"
MIME-Version: 1.0
Content-Transfer-Encoding: 8Bit
X-Mailer: Drupal
Reply-To: my-email@gmail.com
Message-Id: <E1JKIAK-0001a8-4a [at] vps1.womentalking.co.uk>
Date: Wed, 30 Jan 2008 19:00:08 +0000
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - vps1.womentalking.co.uk
X-AntiAbuse: Original Domain - gmail.com
X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12]
X-AntiAbuse: Sender Address Domain - vps1.womentalking.co.uk

This is a multi-part message in MIME format.

--072ff69eb6e30bc55b5ed2fe37a19d84
Content-Type: multipart/alternative;
    boundary="0ced718cd80882b76dd6836f31674f13"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit


--0ced718cd80882b76dd6836f31674f13
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
oadaeh’s picture

I've made an update to the 5.x-2.x branch that checks for Mime Mail and processes attachments differently if it's installed. You will need to patch Mime Mail with the patch that is attached to this issue: http://drupal.org/node/223176

Please let me know what happens for you.

JonDubya’s picture

Had my buddy re-write the whole thing. It works now.

oadaeh’s picture

Thanks for the help.

Does anybody else (bambangfals?, jmburnz?) want to let me know if my changes make it work for you? They would be in the 5.x-2.x-dev [1], and you would need to patch Mime Mail [2].

[1] http://drupal.org/node/160686
[2] http://drupal.org/node/223176

Jeff Burnz’s picture

Ok, I'll try to get to it in the next few days / week or so. Thanks for the update!

oadaeh’s picture

No updates on this? Shall I close it?

Jeff Burnz’s picture

Sorry for not getting back!

No issues to report, one of my clients has been using this quite a bit and all seems to working perfectly.

oadaeh’s picture

Status: Active » Fixed

Thank you for the report.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.