Hi All,
Trying to execute following lines of code on our web server
imports system.web.mail
Dim message As New MailMessage
With message
.To = "
[email protected]"
.BodyFormat = MailFormat.Text
.BodyEncoding = New System.Text.UTF8Encoding
.Subject = "this is test"
.Body = "what a test"
End With
SmtpMail.SmtpServer = "192.20.100.2" ' exchange server ip address
SmtpMail.Send(message)
This is sending mails within our organization but if I am trying to send mail outside world like @yahoo.com, @hotmail.com it is failing and giving CDo.Message error.
Help !!!
neeta