Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. smtp

smtp

Scheduled Pinned Locked Moved ASP.NET
helphtmlcomsysadmin
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    brettokumar
    wrote on last edited by
    #1

    hi i am using smtp concept to sent mail . My code is like below: System.Web.Mail.MailMessage objmail = new System.Web.Mail.MailMessage(); objmail.To = "bretto.be@gmail.com"; objmail.From = "bretto.abraham@aciin.com"; objmail.Subject = "Password Recovery"; objmail.BodyFormat = MailFormat.Html; objmail.Body = "Name: " + strUserName + "\r\n" + "Password: " + strPassword; objmail.Priority = MailPriority.High; // System.Web.Mail.SmtpMail.SmtpServer = "mail.aciin.com"; // System.Web.Mail.SmtpMail.SmtpServer = "64.187.101.246"; // System.Web.Mail.SmtpMail.SmtpServer = "192.168.0.25"; System.Web.Mail.SmtpMail.Send(objmail); objmail = null; but it will display error like this: The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available please help me.

    with regards, bretto

    W A 2 Replies Last reply
    0
    • B brettokumar

      hi i am using smtp concept to sent mail . My code is like below: System.Web.Mail.MailMessage objmail = new System.Web.Mail.MailMessage(); objmail.To = "bretto.be@gmail.com"; objmail.From = "bretto.abraham@aciin.com"; objmail.Subject = "Password Recovery"; objmail.BodyFormat = MailFormat.Html; objmail.Body = "Name: " + strUserName + "\r\n" + "Password: " + strPassword; objmail.Priority = MailPriority.High; // System.Web.Mail.SmtpMail.SmtpServer = "mail.aciin.com"; // System.Web.Mail.SmtpMail.SmtpServer = "64.187.101.246"; // System.Web.Mail.SmtpMail.SmtpServer = "192.168.0.25"; System.Web.Mail.SmtpMail.Send(objmail); objmail = null; but it will display error like this: The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available please help me.

      with regards, bretto

      W Offline
      W Offline
      windhopper
      wrote on last edited by
      #2

      It looks like it should work from what i can see. have you tried doing a search in google for the error?

      "Sex is not the answer, it's the question and the answer is yes"

      1 Reply Last reply
      0
      • B brettokumar

        hi i am using smtp concept to sent mail . My code is like below: System.Web.Mail.MailMessage objmail = new System.Web.Mail.MailMessage(); objmail.To = "bretto.be@gmail.com"; objmail.From = "bretto.abraham@aciin.com"; objmail.Subject = "Password Recovery"; objmail.BodyFormat = MailFormat.Html; objmail.Body = "Name: " + strUserName + "\r\n" + "Password: " + strPassword; objmail.Priority = MailPriority.High; // System.Web.Mail.SmtpMail.SmtpServer = "mail.aciin.com"; // System.Web.Mail.SmtpMail.SmtpServer = "64.187.101.246"; // System.Web.Mail.SmtpMail.SmtpServer = "192.168.0.25"; System.Web.Mail.SmtpMail.Send(objmail); objmail = null; but it will display error like this: The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available please help me.

        with regards, bretto

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        brettokumar wrote:

        but it will display error like this: The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available

        First Configre is SMTP Server. You code is fine. You need to Configure your SMTP server that allow you sebnd mail using SMTP.

        cheers, Abhijit

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups