Sending Mails

  • Thread starter Thread starter Mariame
  • Start date Start date
M

Mariame

Hi Everyone,
im sending mails using this code
Dim smtpmail As Mail.SmtpMail

Dim msgRequest As New Mail.MailMessage

msgRequest.BodyFormat = Mail.MailFormat.Html

msgRequest.Subject = "Track"

msgRequest.From = "(e-mail address removed)"

msgRequest.To = "(e-mail address removed)"

smtpmail.SmtpServer = "ServerName"

msgRequest.Body = "BodyMail"

smtpmail.Send(msgRequest)

* it give me the following error "

The message could not be sent to the SMTP server. The transport error code
was 0x800ccc15. The server response was not available

Any Idea Whats Wrong in it??

Thx in Adv.
 
Maybe your smtp server doesn't allow relaying? You can usually allow
relaying for the IP address(es) of your web server(s)
 
Back
Top