Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > dotnet security > may 2005 >

dotnet security : CDO Mail Problem


Bob
5/31/2005 2:04:15 PM
I am having a strange problem; I am hoping someone can help me.
I am sending email through my vb.net program using the cdo model with
this code:

Dim objMail As New CDO.Message

' Send the mail
With objMail
.Subject = pSubject
.TextBody = pBody
.To = pTo
.From = pFrom
.CC = pcc
.BCC = pBcc

.Send()

End With

We are using cdo instead of outlook because we want the "from"
address to be different than that of the user.

This is a windows based NOT a web-based asp.net program.

This works fine on my development machine and it works on my user's
machine as long as we don't try to send outside our domain. For
example, if we were Microsoft bob@microsoft.com would work but
bob@metaprosystems.com would not.

Yet if I log on as myself on my user's machine it all works fine. The
different is that I have administrator rights and she does not. We
don't want to promote her to administrator we just want to fix
whatever setting is not set right. We try a number of things so far
that didn't work.

We are using exchange server for email.
Udi Witelson
6/2/2005 12:42:57 AM
I would not use CDO if I had to send plain text messages. If you don't
want your e-mail to be known then use BLAT (http://www.blat.net/) -
just reference the SMTP server.

Udi Witelson
AddThis Social Bookmark Button