Error when sending Mail
-
hi all i have used the below code for sending mail from my project Dim message As New MailMessage Try message.To = "abc@yahoo.com" message.From = "abc@hotmail.com" message.Body = "Hi " message.Subject = "Automail" SmtpMail.SmtpServer = "mail.website.biz" SmtpMail.Send(message) Catch ex As Exception Label1.Text = ex.Message End Try on my web server there is a 3rd party SMTP server which i have used to send my mail.i m getting "Could not access 'CDO.Message' object." error. if i need to specify username and password to access my SMTP server then where do i do that in my web.config or where??? thanks
-
hi all i have used the below code for sending mail from my project Dim message As New MailMessage Try message.To = "abc@yahoo.com" message.From = "abc@hotmail.com" message.Body = "Hi " message.Subject = "Automail" SmtpMail.SmtpServer = "mail.website.biz" SmtpMail.Send(message) Catch ex As Exception Label1.Text = ex.Message End Try on my web server there is a 3rd party SMTP server which i have used to send my mail.i m getting "Could not access 'CDO.Message' object." error. if i need to specify username and password to access my SMTP server then where do i do that in my web.config or where??? thanks