« Return to Thread: Zend_Mail and Microsoft Exchange Servers

Re: Zend_Mail and Microsoft Exchange Servers

by weierophinney :: Rate this Message:

Reply to Author | View in Thread

-- Justin Hendrickson <justin.hendrickson@...> wrote
(on Thursday, 06 December 2007, 11:17 AM -0600):
> I just sent out another batch of tests and all versions (0.7.0, 1.0.2,
> 1.0.3, trunk) of Zend_Mail had bad attachments. I also sent two tests
> using PEAR::Mail and PHPMailer v.2.0.0 and those attachments worked.

I just want to clarify:

  * You're sending using Zend_Mail from a local server that is *NOT*
    Exchange
  * Client servers receiving the email *are* using Exchange

Is this correct?

If so, can you provide the full mail pieces with attachments as sent
both by Zend_Mail and either PEAR::Mail or PHPMailer? I would need to
see the full mail, including all mail headers, as it is sent. This can
be done by either creating a transport that simply captures and logs the
mail, or by sending to yourself and posting the received mail somewhere
I can look at it.

Also, please indicate which Zend_Mail transport you are using to send,
the OS you're on, and any options you are using to configure the
Zend_Mail and/or transport objects prior to sending (encoding, character
set, etc.)

Basically, I want to analyze the differences and determine what Exchange
may not be liking about the mails Zend_Mail generates.


> On Dec 6, 2007 10:03 AM, Justin Hendrickson
> <justin.hendrickson@...> wrote:
> > Unfortunately, all the people that having problems with attachments
> > are also Outlook 2003 users. In order to get the full source of an
> > email with Outlook 2003, you have to make a registry change. Normally
> > I'd just call them up and do some troubleshooting with them, but
> > they're not direct customers (these are invoices PDF's I'm sending
> > them) and they're very busy, so they're not very eager to assist me.
> >
> > I just sent off my test scripts to Eric Coleman, so hopefully he can
> > reproduce the bug with those and we can identify the bug.
> >
> >
> > On Dec 5, 2007 11:31 PM, Eric Coleman <eric@...> wrote:
> > > Justin,
> > >
> > > What happens if you diff the exchange attachment vs. the one you send
> > > yourself (which, obviously doesn't go through exchange?)
> > >
> > > Maybe figuring out what's happening with the attachment might help
> > > figure out where it is?  Also, does it happen with any other kinds of
> > > attachments?  Have you tried with like a zip or tarball, or maybe a
> > > word document of some sort?
> > >
> > > Regards,
> > > Eric
> > >
> > >
> > > On Dec 5, 2007, at 11:36 PM, Justin Hendrickson wrote:
> > >
> > > > I tested out Zend_Mail from 1.0.3 and the trunk and got the same
> > > > result.
> > > >
> > > > I sent myself a copy of each mail, saved each of their raw source, and
> > > > diff'ed them. 0.7.0, 1.0.2 and 1.0.3 are pretty much all the same,
> > > > excluding the previously mentioned differences.
> > > >
> > > > I'm going to have to wait until tomorrow to send out another batch of
> > > > tests, unless we can find someone with an MS Exchange server tonight.
> > > >
> > > > In the mean time, I'm going to create a set of test scripts that use
> > > > Zend_Mail 0.7.0, 1.0.2, 1.0.3, trunk, as well as the latest version of
> > > > PHPMailer and PEAR::Mail. Hopefully one of those will work and we'll
> > > > have something to look at.
> > > >
> > > > On Dec 5, 2007 3:53 PM, Justin Hendrickson <justin.hendrickson@...
> > > > > wrote:
> > > >> I just confirmed that Zend_Mail in 0.7.0 and 1.0.2 both failed to
> > > >> send
> > > >> the attachment correctly.
> > > >>
> > > >> I'm looking at raw copies of each email and they look mostly
> > > >> identical
> > > >> (minus timestamps, ids, mime boundaries and such).
> > > >>
> > > >> I'm going to create a new test with 1.0.3 in a minute here.
> > > >>
> > > >>
> > > >> On Dec 5, 2007 3:45 PM, Justin Hendrickson <justin.hendrickson@...
> > > >> > wrote:
> > > >>> This project is a bit old and never got upgraded, so I'm using ZF
> > > >>> 0.7.0.
> > > >>>
> > > >>> I'm going retry sending an email with an attachment to the client
> > > >>> using 0.7.0 and 1.0.3 and see if there's any difference.
> > > >>>
> > > >>>
> > > >>> On Dec 5, 2007 3:01 PM, Cameron Laird <cameron@...>
> > > >>> wrote:
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>> There have indeed been issues in this area; perhaps there still
> > > >>>> are.  What release of Zend_Mail sources do you use?
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>> -----Original Message-----
> > > >>>> From: Justin Hendrickson [mailto:justin.hendrickson@...]
> > > >>>> Sent: Wed 12/5/2007 3:00 PM
> > > >>>> To: fw-formats@...
> > > >>>> Subject: [fw-formats] Zend_Mail and Microsoft Exchange Servers
> > > >>>>
> > > >>>> Has anyone experienced problems with sending attachment with
> > > >>>> Zend_Mail
> > > >>>> to MS Exchange servers? I consistently get emails from them
> > > >>>> saying the
> > > >>>> attachment on the email I sent was corrupt.
> > > >>>>
> > > >>>> I initially thought the PDF was corrupt, so I started saving a
> > > >>>> copy of
> > > >>>> it before emailing it. The PDF opens fine, and weirder yet, sending
> > > >>>> the attachment with my email client (Evolution) works fine, no
> > > >>>> corruption issues.
> > > >>>>
> > > >>>> I'd test this myself, but I don't have an MS Exchange server to run
> > > >>>> the tests on. I might be able to send a couple more emails to one
> > > >>>> of
> > > >>>> the users, but they're typically too busy to expect any kind of
> > > >>>> reasonable turn around time.
> > > >>>>
> > > >>>>
> > > >>>
> > > >>
> > >
> > >
> >
>

--
Matthew Weier O'Phinney
PHP Developer            | matthew@...
Zend - The PHP Company   | http://www.zend.com/

 « Return to Thread: Zend_Mail and Microsoft Exchange Servers