cURL / Mailing Lists / curl-library / Single Mail

curl-library

SMTP messages are destroyed by Exchange 2003 only

From: Volker Schmid <volker.schmid_at_regify.com>
Date: Thu, 07 Feb 2013 15:06:26 +0100

Hello,

I might be in the wrong discussion group but I'm using cURL to send SMTP messages. The point is, that the messages seem to work fine in general. But if a Exchange 2003 server is somewhere in the loop, the attached file is destroyed after about 3000 bytes (depends on message size).

I cant see any error in what I'm sending and so I thought that maybe one of you guys knows about MIME and is able to tell me whats wrong?

This is what I'm providing inside of the CURLOPT_READFUNCTION procedure (only anonymized, base64 part a little truncated). In this example, the mailserver of company.com is some Exchange 2003 server:

X-Mailer: companySMTPAgent
To: foo.schmid_at_company.com
From: Alice Meister <alice.meister_at_mailserver.de>
Reply-To: alice.meister_at_mailserver.de
Date: Thu, 07 Feb 2013 14:34:13 +0100
Subject: SMTP sending test to foo.schmid_at_company.com
MIME-Version: 1.0
Message-Id: <rgfXUNEGOYXWDDKEILSPWEZUDVSLBCXQDFHHKrgf_at_www.company.com>
Content-Type: multipart/mixed;
     boundary="6d7b6bc9ef4f9f556847f74158873c7c"

This is a multipart message in MIME format.

--6d7b6bc9ef4f9f556847f74158873c7c
Content-Type: multipart/alternative;
     boundary="second_6d7b6bc9ef4f9f556847f74158873c7c"

--second_6d7b6bc9ef4f9f556847f74158873c7c
Content-Type: text/plain; charset=utf-8

This is some test body in HTML format.

--second_6d7b6bc9ef4f9f556847f74158873c7c
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><b>This</b> is some test <h1>body</h1> in HTML format.</html>

--second_6d7b6bc9ef4f9f556847f74158873c7c--

--6d7b6bc9ef4f9f556847f74158873c7c
Content-Type: image/gif; name="bnclan.gif"
Content-Transfer-Encoding: base64
Content-Disposition: Attachment; filename="bnclan.gif"

R0lGODlh5ADqAPcAAAAAAAMDAwMRABYWFgghARMsDA04ABcvEBgwEQ04JScnJz4+PnsDA2siAn
EtDnQvEHk1Fw9BABFIARVbABprAhp0ACJ3CR9YLyBZL1tCAWxVGEdtAU5yDFF1D1V4E3VdIRMq
XgAAZRUsYSI5eSpWXBlrWURERFlZWWZmZnV1dYAPD4YVFYE9H4ssIB6JACGMAjiNAiOWAjmTAi
+YECmsAjGuDCmzADKxDTesFDq2FR+KLCWILkGSDUiZFVCfHUutDEyyC02rEVKrGkK8HVOzGmir
Em6yGXK3GkqnL1SkIEe9JFK+LUerPE+3MFS5Nna8LEPBHkrFJlHKLVXOMVrUNmHCL2HEN33FNm
HbPT+LTUOXTlO3UHa/T0iWY1WjfV7CQWXGSGXeQXjMXm7RUXjUXWrjRnLrTnXuUXfwU2bJZnrG
Y27QbH7bYn7hYbOfF4GmDLKlE62ZI5y4Kq6uJ7yqJqK8KLy7J6a/MLu7M8iwF8etI8myJdi5Ks
etMsm3Ndm7O+C/PqfDK9zAJ8nFNtnEOeHBLujFPfLNPvfSPtK6RITKULHLTofScKrScojobMbH
RNvESdbcTMnIVN3HWcvVUd7YXunIRPLOQuzTS/bUSeXMWevTVvfaVvzjWdzLaOTLZevXZ/bbaO
nZdvPddNnld/jkZ//xaOngf/bleP/2exQUgQ4/lCcnng5AlQcfwAggwQAA7kZRzVdu2Gd+20xM
4lZW4lpa/3h44mho/3Jy/2q2jFSDsGGOtoaGhpmZmaa9n6mpqbe3t5XCiK3en5rlg6PujKXwjq
7in6/GqbTKra7doLHfo7nPsr/VuLnmq+vfidnpivLmh/ryhurom/bpkv71m8Pavcb0ufnwqp+f
xYyM/6en/8jIyMjewdLez9ra2s7kx9buz9bwz9jv0dvy1eP53M/P4sP//+zs7OTk//////////
//////////////////////////////////////////////////////////////////////////
/////yH5BAEAAOoALAAAAADkAOoAQAj+ANUJHEiwoMGDCBMqXMiwocOHECNKnEixosWLGDNq3F
jxWzBgKUKKHElyZC9fwFKq/MaxpcuXMGMyDPbRl0gUJXPqFIlSpc+f3NDJHEq06FBuH38qXcpU
ZTCjUKNKlekxadOrTHuxnMq1q1eI6JBiHbv0q9mzaAdy40a2rUpuaV06s0G3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wCYua4yTXx6jWspw+K7EJ65uPlVjmNfM2DYOYIAK
Fgw4CNSnOK37K+xSFIYp1K52hOqaOp7KVmmWjQaEwNz+5Q4BiDUPzxCYG4QRskdZwzD5e4Ox78
xUcOOl9YA36hNRlpUUO9iFAXGHpSk2JQIOMdDACIQY3iEyYYg/8CETR3DWBGJwqTpc4hKHuITx
oAdnUPjBCEDYXsJwQNIL1mCDsP7NFEXFPpiSqNAuQq0iFw0VcHCBBkcYRKUBAepDQIKBwrMEpU
VRCkvwYYGg+MMkjIiJUKCxFJF4AgYRyhspRjGKx6n1fhghZHjyGl/DYAINnjCIT5xR2YZIhCT+
sEMe+mESlrhEAy0BClFYAhue2AQ1nvBtLnwDd4N07rkNOQwn0EAMfuCEHjSBCkAQ/KDJ8IiiF7
5oYQ2Z4wvPYpn+QQ7Mb3jcLSRPuVoyo1iVY7OaWBm5y2delVfO/OY4z3kp18tzV44FxDoHJk1y
RXTjjpLIQeejWG6CTJ0cMyQ [...truncated here for the mailinglist...]

--6d7b6bc9ef4f9f556847f74158873c7c--

The point is, that the attached image is getting destroyed by the receiving Exchange 2003 mailserver. If I copy myself on BCC for this message, I receive it very well without any problems.

Anyone having an idea what I can change to make it working with Exchange 2003, too? Sadly a lot of people still using Exchange 2003...

Best,

Volker
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-07