S
Samia
I have an application running on a single workstation (win 2000) with
Outlook installed and a profile create using and exchange server with
authentification through the DNS. This user profile is the only one
using the app.
I want the app to send email using the profile's email adress.
Here is what I am doing :
Dim mail As New MailMessage()
mail.From = "(e-mail address removed)"
mail.To = "(e-mail address removed)"
mail.Subject = "test msg"
mail.Body = "blablabla"
mail.BodyFormat = MailFormat.Html
SmtpMail.SmtpServer = "mydomain.com"
SmtpMail.Send(mail)
The problem is that I get the error message
An unhandled exception of type 'System.Web.HttpException' occurred in
system.web.dll
Additional information: Could not access 'CDO.Message' object.
I tried changing smtpserver to myexchangeserver.mydomain.com and I get
the same error message.
Any ideas?
Samia.
Outlook installed and a profile create using and exchange server with
authentification through the DNS. This user profile is the only one
using the app.
I want the app to send email using the profile's email adress.
Here is what I am doing :
Dim mail As New MailMessage()
mail.From = "(e-mail address removed)"
mail.To = "(e-mail address removed)"
mail.Subject = "test msg"
mail.Body = "blablabla"
mail.BodyFormat = MailFormat.Html
SmtpMail.SmtpServer = "mydomain.com"
SmtpMail.Send(mail)
The problem is that I get the error message
An unhandled exception of type 'System.Web.HttpException' occurred in
system.web.dll
Additional information: Could not access 'CDO.Message' object.
I tried changing smtpserver to myexchangeserver.mydomain.com and I get
the same error message.
Any ideas?
Samia.