D
Darren Gulliver
Hi,
I've written a small proof of concept application to show we can send emails
in VB.NET and it works a treat using this piece of code:
Dim myEmail As System.Web.Mail.MailMessage = New
System.Web.Mail.MailMessage()
myEmail.From = txtFrom.Text
myEmail.To = txtTo.Text
myEmail.Body = txtBody.Text
SmtpMail.SmtpServer = ""
SmtpMail.Send(myEmail)
But if I specify a mailserver in SmtpMail.SmtpServer I get this error:
Could not access 'CDO.Message' object.
Why does setting SmtpMail.SmtpServer = "" send the email?
Does this mean that using System.Web.Mail.MailMessage is reliant on having
Outlook or Outlook Express installed (Currently I have Outlook 2003
installed)?
Thanks
Darren
I've written a small proof of concept application to show we can send emails
in VB.NET and it works a treat using this piece of code:
Dim myEmail As System.Web.Mail.MailMessage = New
System.Web.Mail.MailMessage()
myEmail.From = txtFrom.Text
myEmail.To = txtTo.Text
myEmail.Body = txtBody.Text
SmtpMail.SmtpServer = ""
SmtpMail.Send(myEmail)
But if I specify a mailserver in SmtpMail.SmtpServer I get this error:
Could not access 'CDO.Message' object.
Why does setting SmtpMail.SmtpServer = "" send the email?
Does this mean that using System.Web.Mail.MailMessage is reliant on having
Outlook or Outlook Express installed (Currently I have Outlook 2003
installed)?
Thanks
Darren