CDO: Weird Problem - 'From' address only is not getting resolved

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I had already posted this mail in dotnet general, but to get a reply 'Do a
SMTP authenticate', which doesn't solve my problem. Here is the issue.

I am using the MailMessage object to send mails. One issue that I am
currently facing is that the 'From' address that I provide is not getting
resolved. I was testing the code with the same address for both 'From' and
'To'. When I viewed the mail through Outlook, the 'To' address was resolved
and I was able to view the Outlook properties, but not the 'From'. The 'From'
address was displayed like an external SMTP type email ID. I had tried with
all formats. Using outlook when I try to reply, even then it doesn't get
resolved at all and shows as an external email address.

I don't know how to figure out where the problem is. It may be in the CDO
properties that I set or the Exchange server or the Client that I am using to
view the message.

Here is an example. I am expecting (e-mail address removed) to get resolved and show
the 'Display Name' Jay. In the received mail mesage, the From field has
(e-mail address removed) and the To field shows Jay.

I had searched the entire net for such a problem and I haven't come across
one, probably my search keywords are wrong.

I am using NTLM Authentication with the following code, the SMTP server
being Exchange 2003 and the client is Outlook 2003, with CDO for Exchange
2000
oMailMessage.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", 2)

I have to use only NTLM based Authentication, as the server is configured
so. Any help would be appreciated.

Thanks in advance.

Rgds.
 
Back
Top