I have a curious problem for someone. I'm sending an email in plain text (no HTML portion) along with a single attachment. I get the email fine, but the email content disappears - I only see the text link. When examining the raw content of the email, the text DOES get sent along - it just doesn't get shown (I'm using Gmail).
Any idea what's going on?
Here's my code (the relevant bits):
Code: Select all
$swift =& new Swift($smtp);
$email =& new Swift_Message($email_components["subject"]);
$email->attach(new Swift_Message_Part($email_components["text_content"]));
$email->attach(new Swift_Message_Attachment(new Swift_File($file_and_path), $filename, $mimetype));
$swift->send($email, $recipients, $from);
Code: Select all
Delivered-To: ben.keen@gmail.com
Received: by 10.231.33.129 with SMTP id h1cs397761ibd;
Mon, 9 Mar 2009 11:18:00 -0700 (PDT)
Received: by 10.220.72.193 with SMTP id n1mr1940201vcj.31.1236622672716;
Mon, 09 Mar 2009 11:17:52 -0700 (PDT)
Return-Path: <ben.keen@gmail.com>
Received: from friskymail-a4.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5])
by mx.google.com with ESMTP id 4si9022210yxd.40.2009.03.09.11.17.51;
Mon, 09 Mar 2009 11:17:52 -0700 (PDT)
Received-SPF: neutral (google.com: 208.113.200.5 is neither permitted nor denied by domain of ben.keen@gmail.com) client-ip=208.113.200.5;
Authentication-Results: mx.google.com; spf=neutral (google.com: 208.113.200.5 is neither permitted nor denied by domain of ben.keen@gmail.com) smtp.mail=ben.keen@gmail.com
Received: from [208.113.213.174] (renault.dreamhost.com [208.113.195.21])
by friskymail-a4.g.dreamhost.com (Postfix) with ESMTP id 978D4121DA3
for <ben.keen@gmail.com>; Mon, 9 Mar 2009 11:17:51 -0700 (PDT)
To: Ben Keen <ben.keen@gmail.com>
From: Ben Keen <ben.keen@gmail.com>
Reply-To: Ben Keen <ben.keen@gmail.com>
Subject: Reply-to test
Date: Mon, 09 Mar 2009 11:17:51 -0700
X-LibVersion: 3.3.2
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="_=_swift-67511603649b55d4f97b179.56926395_=_"
Content-Transfer-Encoding: 7bit
Message-ID: <20090309181751.16512.389671335.swift@beta.formtools.org>
This is a message in multipart MIME format. Your mail client should not
be displaying this. Consider upgrading your mail client to view this
message correctly.
--_=_swift-67511603649b55d4f97b179.56926395_=_
Content-Type: multipart/alternative;
boundary="_=_swift-1447505149b55d4f97c0a7.82425583_=_"
Content-Transfer-Encoding: 7bit
--_=_swift-1447505149b55d4f97c0a7.82425583_=_
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
There has been a submission made through your form, Checkbox test:
ID: 96
Multi Checkboxes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
IP Address: 70.79.85.187
file!: http://beta.formtools.org/upload/4_pics.jpg
Submission made: Mar 9th 09, 11:17 AM
--_=_swift-1447505149b55d4f97c0a7.82425583_=_
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
--_=_swift-1447505149b55d4f97c0a7.82425583_=_--
--_=_swift-67511603649b55d4f97b179.56926395_=_
Content-Type: image/jpeg; name=4_pics.jpg
Content-Transfer-Encoding: base64
Content-Description: 4_pics.jpg
Content-Disposition: attachment; filename=4_pics.jpg
/9j/4AAQSkZJRgABAQEAZABkAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQY
GBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYa
KCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAAR
CAFFAcIDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAA
AgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK
FhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWG
h4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl
...