smtp problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Grant

    #1

    smtp problem

    When I tried to send the eMail using the smtp. I get "The transport failed to connect to the server. " I am not sure where to start to touble shoot this? Any idea?

    THe codes is

    Dim message As New MailMessage()
    With message
    ..BodyFormat = MailFormat.Html
    ..To = RecipientList
    ..Cc = MessageFrom
    ..Subject = MessageSubject
    ..From = MessageFrom
    ..Body = MessageBody
    End With
    SmtpMail.SmtpSe rver = "localhost"
    SmtpMail.Send(m essage)


Working...