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
  1. Home
  2. Web Development
  3. ASP.NET
  4. problem sending mail

problem sending mail

Scheduled Pinned Locked Moved ASP.NET
helpsysadmintutorial
8 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.
  • M Offline
    M Offline
    m dhu
    wrote on last edited by
    #1

    everything executed and no error message but unable to send mail.. sent mail from and to local network... guide me...

    MailMessage message = new MailMessage();
    message.From = TextBox1.Text;
    message.To = TextBox2.Text;
    message.Subject = TextBox3.Text;
    message.Body = TextBox4.Text;
    try
    {
    SmtpMail.SmtpServer = "localhost";
    SmtpMail.Send(message);

    		}
    		catch (Exception ex)
    		{
    		Label1.Text=ex.Message.ToString();  
    		}
    
    D A 2 Replies Last reply
    0
    • M m dhu

      everything executed and no error message but unable to send mail.. sent mail from and to local network... guide me...

      MailMessage message = new MailMessage();
      message.From = TextBox1.Text;
      message.To = TextBox2.Text;
      message.Subject = TextBox3.Text;
      message.Body = TextBox4.Text;
      try
      {
      SmtpMail.SmtpServer = "localhost";
      SmtpMail.Send(message);

      		}
      		catch (Exception ex)
      		{
      		Label1.Text=ex.Message.ToString();  
      		}
      
      D Offline
      D Offline
      Dinesh Mani
      wrote on last edited by
      #2

      Have you configured SMTP service on the dev/deployment box? If yes check if the messages are in the Bad mail folder. Else configure SMTP service, All the best for that .

      M 1 Reply Last reply
      0
      • M m dhu

        everything executed and no error message but unable to send mail.. sent mail from and to local network... guide me...

        MailMessage message = new MailMessage();
        message.From = TextBox1.Text;
        message.To = TextBox2.Text;
        message.Subject = TextBox3.Text;
        message.Body = TextBox4.Text;
        try
        {
        SmtpMail.SmtpServer = "localhost";
        SmtpMail.Send(message);

        		}
        		catch (Exception ex)
        		{
        		Label1.Text=ex.Message.ToString();  
        		}
        
        A Offline
        A Offline
        Anurag Gandhi
        wrote on last edited by
        #3

        madhukk wrote:

        sent mail from and to local network...

        Are you connected to internet? Check the link below: http://www.codersource.net/csharp_sending_emails.aspx[^] The list of FAQ may help you: FAQ[^]

        Anurag Gandhi. http://www.gandhisoft.com Life is a computer program and every one is the programmer of his own life.

        1 Reply Last reply
        0
        • D Dinesh Mani

          Have you configured SMTP service on the dev/deployment box? If yes check if the messages are in the Bad mail folder. Else configure SMTP service, All the best for that .

          M Offline
          M Offline
          m dhu
          wrote on last edited by
          #4

          messages are in badmail folder what is the problem how to send...

          D 1 Reply Last reply
          0
          • M m dhu

            messages are in badmail folder what is the problem how to send...

            D Offline
            D Offline
            Dinesh Mani
            wrote on last edited by
            #5

            There might be a multitude of reasons why the mail is moved to bad mail. For starters check if the SMTP configuration is correct. As Anuragh has pointed, it could be a problem with the SMTP routing. Also, open the message from the bad mail folder to see if there is anything wrong in the message itself, may be the from, to, etc is not valid. Also, check out the reference that Anuragh has provided.

            M 1 Reply Last reply
            0
            • D Dinesh Mani

              There might be a multitude of reasons why the mail is moved to bad mail. For starters check if the SMTP configuration is correct. As Anuragh has pointed, it could be a problem with the SMTP routing. Also, open the message from the bad mail folder to see if there is anything wrong in the message itself, may be the from, to, etc is not valid. Also, check out the reference that Anuragh has provided.

              M Offline
              M Offline
              m dhu
              wrote on last edited by
              #6

              smtp is configured correctly... this is error im getting in badmail... Final-Recipient: rfc822;madhuk@ritwik.net Action: failed Status: 5.5.0 Diagnostic-Code: smtp;550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces. Received: from netzoom ([192.168.1.140]) by netzoom with Microsoft SMTPSVC(6.0.3790.1830); Fri, 11 Dec 2009 11:33:28 +0530 thread-index: Acp6J6iir0Pz4+GbReinRqj/qV6YfA== Thread-Topic: hi From:madhuk@ritwik.net; To:madhuk@ritwik.net; Subject: hi Date: Fri, 11 Dec 2009 11:33:28 +0530 Message-ID: 000601ca7a27$a8a2df80$8c01a8c0@netzoom; MIME-Version: 1.0

              D 1 Reply Last reply
              0
              • M m dhu

                smtp is configured correctly... this is error im getting in badmail... Final-Recipient: rfc822;madhuk@ritwik.net Action: failed Status: 5.5.0 Diagnostic-Code: smtp;550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces. Received: from netzoom ([192.168.1.140]) by netzoom with Microsoft SMTPSVC(6.0.3790.1830); Fri, 11 Dec 2009 11:33:28 +0530 thread-index: Acp6J6iir0Pz4+GbReinRqj/qV6YfA== Thread-Topic: hi From:madhuk@ritwik.net; To:madhuk@ritwik.net; Subject: hi Date: Fri, 11 Dec 2009 11:33:28 +0530 Message-ID: 000601ca7a27$a8a2df80$8c01a8c0@netzoom; MIME-Version: 1.0

                D Offline
                D Offline
                Dinesh Mani
                wrote on last edited by
                #7

                madhukk wrote:

                Diagnostic-Code: smtp;550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces.

                I guess the lines message there pretty much sums up your errors.

                M 1 Reply Last reply
                0
                • D Dinesh Mani

                  madhukk wrote:

                  Diagnostic-Code: smtp;550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces.

                  I guess the lines message there pretty much sums up your errors.

                  M Offline
                  M Offline
                  m dhu
                  wrote on last edited by
                  #8

                  i can send and recieve emails for that mailid through outlook express...

                  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