Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: Untitled Attachment
kberson
keith.berson@nuance.com

From: Burlington, MA USA
Posts: 42
Member Since: 12/11/01
posted May 20, 2005 3:37 PM

I've posted this question here before, but I'm hoping what I add will shed some light on this problem.

I am using the MailTools to send to an address (my own) with an Exchange server. The Exchange server is stripping the body of the email off and putting as an attachment called, "Untittled Attachment."

When I posted this question before, you informed me that:

"Here's the deal:

We don't do anything special for MS EXCHANGE. Our SMTP control connects to port 25 of the server you specify, sends HELO, sends MAIL FROM:, sends RCPT TO:, sends DATA and finally sends QUIT. "

Here's what I have to add that's new:

I started the SmtpClient sample code, compiled and ran it, and sent myself. The email arrived without a problem. 

I then modified the code to save the body of the email into a file, and used the AddHtml() to put it into my email. Exchange stripped it off and I received an "Untitled Attachment"

For my last test, I tried something that I found in the Dart Forum. I replaced the call to AddHtml() with:

pSmtp->GetMessage()->PutText(_bstr_t(body));
pSmtp->GetMessage()->GetHeader()->Add(DartMail::msgContentType,_bstr_t("text/html"),true);

Guess what? The email came through normally. 

It looks to me like there is something not being set by the call to AddHtml().

I see major differences in the log, too:

Here is using AddHtml()
=======================================
---> To: keith.berson@scansoft.com
From: aer@phoneticsystems.com
Subject: Test #7
MIME-Version: 1.0
Content-Type: multipart/mixed; Boundary="--PTCP_2bca82db05035607d5"
Message-ID: <2bca82dc05035707d5@[192.168.1.54]>
Date: Fri, 20 May 2005 13:08:48 -0400

----PTCP_2bca82db05035607d5
Content-Type: multipart/related; Boundary="--PTCP_2bca82ef05035807d5"


----PTCP_2bca82ef05035807d5
Content-Type: multipart/alternative; Boundary="--PTCP_2bca82f005035907d5"


----PTCP_2bca82f005035907d5
Content-Type: text/plain
Content-Transfer-Encoding: Quoted-Printable

=0D
=09=0D
=09=09Monthly Status Report from the Speech Monitor Adminstrator=0D

===================================
Here is using PutText()
===================================
---> To: keith.berson@scansoft.com
From: aer@phoneticsystems.com
Subject: Test #8
Content-Type: text/html
Content-Transfer-Encoding: Quoted-Printable
MIME-Version: 1.0
Message-ID: <2be1633f0502c707d5@[192.168.1.54]>
Date: Fri, 20 May 2005 13:33:47 -0400

<html>
=09<head>
=09=09<title>Monthly Status Report from the Speech Monitor Adminstrator</ti=
tle>
=========================================
So -- what do you think?

Keith
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 20, 2005 3:49 PM

Please write a very simple sample project (VB if possible). The project should have two buttons "Good" and "Bad" that should send email to the same account (which we will change here)

If you can do this so that it shows us the problem, there is a pretty good chance I can get a quick turn-around on the issue.

Please zip the project up and send it to support@dart.com

Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX