Hi,
I am new to SMTP mail service. I have installed the SMTP with the IIS 5.0. I have Windows XP and Visual Studio 2003.
When I use the following code to send e-mail
imports system.web.mail
SmtpMail.SmtpServer = "localhost"
'create mail message object
Dim oMessage As New MailMessage
' set some properties
oMessage.BodyFormat = MailFormat.Text
oMessage.From = my email address
oMessage.To = receiver's e-mail address
oMessage.Subject = "Test Mail"
oMessage.Body = "This is a test e-mail, please ignore.\r\rBest regards,\rWimdows.net"
' Send the e-mail
SmtpMail.Send(oMessage)
I get the following message
Could not access 'CDO.Message' object.
Now, I tried without the first line (smtpmail.smtpserver), it still gives me the same message.
When I searched for this error on the web, I found that this is a generic message.
How do I make sure my SMTP server is configured properly?
Can someone please help me?
Thanks in advance,
Rushdi Basir
I am new to SMTP mail service. I have installed the SMTP with the IIS 5.0. I have Windows XP and Visual Studio 2003.
When I use the following code to send e-mail
imports system.web.mail
SmtpMail.SmtpServer = "localhost"
'create mail message object
Dim oMessage As New MailMessage
' set some properties
oMessage.BodyFormat = MailFormat.Text
oMessage.From = my email address
oMessage.To = receiver's e-mail address
oMessage.Subject = "Test Mail"
oMessage.Body = "This is a test e-mail, please ignore.\r\rBest regards,\rWimdows.net"
' Send the e-mail
SmtpMail.Send(oMessage)
I get the following message
Could not access 'CDO.Message' object.
Now, I tried without the first line (smtpmail.smtpserver), it still gives me the same message.
When I searched for this error on the web, I found that this is a generic message.
How do I make sure my SMTP server is configured properly?
Can someone please help me?
Thanks in advance,
Rushdi Basir