[Phpmailer-general] AddStringAttachment()'s not getting decoded from base64 by email clients
A full-featured email creation and transfer class for PHP
Brought to you by:
coolbru
From: Nathan F. <nat...@gm...> - 2006-06-13 15:32:43
|
I'm using AddStringAttachment($filedata, $filename, "base64", $mimetype ) to pull a file thats already in base64 and attach it to the emails im sending. The file gets sent and the headers look correct to me, but for some reason email clients can't decode it. AOL, Gmail, and Outlook all see the file but send it to me as base64 data rather than decoding it. Below is an example email with a short file attached. (I just noticed my autolinker is running on the plain text version...and thinks its truncating email addresses.) Could anybody please help me figure out whats happening here and more importantly, how to fix it? I'm using SMTP if it makes a difference. Thanks in advance! X-Gmail-Received: 328807b2a9c94805717e41a143bad9fc45a107c0 Delivered-To: nat...@gm... Received: by 10.35.92.20 with SMTP id u20cs76566pyl; Tue, 13 Jun 2006 08:21:21 -0700 (PDT) Received: by 10.36.196.20 with SMTP id t20mr10993197nzf; Tue, 13 Jun 2006 08:21:21 -0700 (PDT) Return-Path: <na...@ib...> Received: from spamfilter.daytondigital.net (spamfilter.daytondigital.net [64.132.209.12]) by mx.gmail.com with ESMTP id 16si10996950nzo.2006.06.13.08.21.20; Tue, 13 Jun 2006 08:21:21 -0700 (PDT) Received-SPF: neutral (gmail.com: 64.132.209.12 is neither permitted nor denied by best guess record for domain of na...@ib...) X-ASG-Debug-ID: 1150212080-503-230-0 X-Barracuda-URL: http://64.132.209.12:80/cgi-bin/mark.cgi Received: from iboomerang.com (mail.daytondigital.net [64.132.209.21]) by spamfilter.daytondigital.net (Spam Firewall) with ESMTP id 1821B2007966 for <nat...@gm...>; Tue, 13 Jun 2006 11:21:20 -0400 (EDT) Received: from my.iboomerang.com [66.194.243.34] by iboomerang.com with ESMTP (SMTPD32-8.05) id AB56748000B4; Tue, 13 Jun 2006 11:35:50 -0400 Date: Tue, 13 Jun 2006 11:25:49 -0400 To: Nathan <nat...@gm...> From: Nathan Friedly <na...@ib...> X-ASG-Orig-Subj: Test Email Subject: Test Email Message-ID: <057...@my...> X-Priority: 3 X-Mailer: PHPMailer [version 1.73] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_057915b5a1e532038bd66161a7f46058" X-RBL-Warning: BASE64: A binary encoded text or HTML section was found in this E-mail. X-Declude-Sender: na...@ib... [66.194.243.34] X-Declude-Spoolname: Ddb56748000b4c6ba.SMD X-RecipHost: gmail.com X-DateTime: 06/13/2006 11:35:53 X-Direction: outgoing from daytondigital.net mail server X-Localhost: iboomerang.com X-Mailfrom: na...@ib... X-MSGID: <057...@my...> X-NumberofRecips: 1 X-Queue: Ddb56748000b4c6ba.SMD X-RemoteHost: gmail.com X-RemoteServer: 66.194.243.34 X-RevDNS: usabenefitsgroup.net X-SenderHost: iboomerang.com X-DECLUDEVER: 1.75 X-Warning: A binary encoded text or HTML section was found in this E-mail. X-Weight: 4 X-Note: This E-mail was scanned by Dayton Digital Networks for spam. X-Barracuda-Bayes: INNOCENT GLOBAL 0.4434 1.0000 0.0000 X-Virus-Scanned: by Barracuda Spam Firewall at daytondigital.net X-Barracuda-Spam-Score: 1.13 X-Barracuda-Spam-Status: No, SCORE=1.13 using global scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=2.5 KILL_LEVEL=5.0 tests=BSF_RULE7568M, HTML_IMAGE_ONLY_16 X-Barracuda-Spam-Report: Code version 3.02, rules version 3.0.14739 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 BSF_RULE7568M BODY: Custom Rule 7568M 0.63 HTML_IMAGE_ONLY_16 BODY: HTML: images with 1200-1600 bytes of words --b1_057915b5a1e532038bd66161a7f46058 Content-Type: multipart/alternative; boundary="b2_057915b5a1e532038bd66161a7f46058" --b2_057915b5a1e532038bd66161a7f46058 Content-Type: text/plain; charset = "iso-8859-1" Content-Transfer-Encoding: 8bit This is a test email. The folowing file should be correctly attached with base64 encoding: <a href="http://my.iboomerang.com/email/files.php?fileid=98&act=Download">my.iboomerang.com/email/files.php?fileid=98&act=Download</a> Nathan Friedly <a href="mailto:na...@ib..." title="mailto:na...@ib...">na...@ib......</a> 888-370-3609 --b2_057915b5a1e532038bd66161a7f46058 Content-Type: text/html; charset = "iso-8859-1" Content-Transfer-Encoding: 8bit <html><head></head> <body style="background-color:0167B1;font-face:verdana, arial, helvetica, sans-serif;font-size:12;color:000000"> <br /> <center> <div id="email_container" style="width:600px;text-align:left;border:1px solid 000000;background-color:FFFFFF"> <div id="email_banner"> <a href="http://www.iboomerang.com/" id="email_baner_link"> <img src="http://my.iboomerang.com/email/viewimage.php?imageid=7" alt="" id="email_banner_image" border="0" /></a> </div> <div id="email_body" style="padding:1.5ex;">This is a test email. <br /> <br /> The folowing file should be correctly attached with base64 encoding:<br /> <a href="http://my.iboomerang.com/email/files.php?fileid=98&act=Download">my.iboomerang.com/email/files.php?fileid=98&act=Download</a> <br /> <br /> Nathan Friedly<br /> <a href="mailto:na...@ib..." title="mailto:na...@ib...">na...@ib......</a><br /> 888-370-3609</div> <div id="email_footer" style="padding:1.5ex;border-top:1px dotted ccc;font-size:10pt;"> This message is not spam. This message was sent through the iBoomerang Email Template Tool by Nathan Friedly <<a href="mailto:na...@ib...">na...@ib...</a>><br /> For more information about iBoomerang, please visit <a href="http://www.iboomerang.com">iBoomerang.com</a>. <img src="http://my.iboomerang.com/email/imagetracker.php?emailid=537" alt="" /></div> </div> </center> </body> </html> --b2_057915b5a1e532038bd66161a7f46058-- --b1_057915b5a1e532038bd66161a7f46058 Content-Type: text/plain; name="attachment file.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment file.txt" YzJsdGNHeGxJSFJsZUhRZ1lYUjBZV05vYldWdWRBMEtUbUYwYUdGdUlFWnlhV1ZzWkhrPQ== --b1_057915b5a1e532038bd66161a7f46058-- -- Nathan Friedly http://nfriedly.com |