Hello,
I am using a class in c#.net to send emails. The class works fine and
i have no problem sending emails without attachments. When i put an
attachment to the email, the message is sent/received and the
attachment seems to be in the message, since it is 400k big for an
empty body message (i try to put a 400k attachment) but i can't access
the attachment.
Here are the commands i send to the host :
HELO xxMyHostxx.com
MAIL FROM:<xxxx@xxxxxxx.com>
RCPT TO:<xxxx@xxxxxxx.com>
DATA
MIME-Version: 2.2
X-Mailer: smwEmailer.SmtpEmailer
FROM: xxxx@xxxxxxx.com
TO: xxxx@xxxxxxx.com
REPLY-TO: xxxx@xxxxxxx.com
DATE: Tue, 26 Oct 2004 16:23:19 GMT
SUBJECT: TEST
Content-Type: multipart/mixed; boundary="#SEPARATOR1#"
This is a multi-part message in MIME format.
--#SEPARATOR1#
Content-Type: application/octet-stream; name="a.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="a.txt"
Content-ID: <a>
--#SEPARATOR1#
Content-Type: multipart/alternative; boundary="#SEPARATOR2#"
--#SEPARATOR2#
Content-Type: text/plain; charset=iso-8859-1
Your email client does not support MHTML messages
--#SEPARATOR2#
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
This is the the body of the email
--#SEPARATOR2#--
--#SEPARATOR1#--
..
QUIT
All the adresses are working. The attachment is a simple text file...
If anyone can help me with that, it would be much appreciated