Sending email in 2005 Fiji Islands
  • 12 years ago


     iam using this code for sending email in with vb code.

    tell me what to be added or set in the default smtp server.

    Imports System.web.Mail

    Dim msg1 As New MailMessage

    msg1.From =  'txtFrom.Text

    msg1.To = 'txtTo.Text

    msg1.Subject = "test" 'txtSubject.Text

    msg1.Body = strMessage.ToString

    msg1.BodyFormat = MailFormat.Html

    msg1.Priority = MailPriority.Normal

    SmtpMail.SmtpServer = "localhost" 'Your SMTP Server (what i should specify here) 'i specified my system ip



    iam getting 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

    i need help urgently.any one can suggest any solution...












Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Computer Science is no more about computers than astronomy is about telescopes.” - E. W. Dijkstra