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. Unable to send d email in asp.net 2.0 application

Unable to send d email in asp.net 2.0 application

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminhelp
7 Posts 2 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.
  • R Offline
    R Offline
    Ramya G
    wrote on last edited by
    #1

    I have been trying to send an email from ASP.NET 2.0 application. It worked fine when i executed the code in the localhost. I was able to send mails through the email server and also received the same. But when i deployed the same code in ftp server I am unable to send the email. Exception I received is: "Failure sending mail.System.Net.WebException: Unable to connect to the remote server". Can anyone help me out in dis. Regards Ramya

    N 1 Reply Last reply
    0
    • R Ramya G

      I have been trying to send an email from ASP.NET 2.0 application. It worked fine when i executed the code in the localhost. I was able to send mails through the email server and also received the same. But when i deployed the same code in ftp server I am unable to send the email. Exception I received is: "Failure sending mail.System.Net.WebException: Unable to connect to the remote server". Can anyone help me out in dis. Regards Ramya

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      I believe the exception is self-explanatory. Check if the deployed server can actually reach the mail server you are trying to use.


      only two letters away from being an asset

      R 1 Reply Last reply
      0
      • N Not Active

        I believe the exception is self-explanatory. Check if the deployed server can actually reach the mail server you are trying to use.


        only two letters away from being an asset

        R Offline
        R Offline
        Ramya G
        wrote on last edited by
        #3

        Hi Mark, I understand ur point. But there are two things that has to be noted here. 1. I am able to send email from an asp page inside the same ftp server to mail server that i mentioned earlier, which means that ftp server and mail server are accessible. 2. I am able to access the mail server from my aspx page in localhost , which means that mail server is accessible from aspx page too. I dont know where exactly the problem is.

        N 1 Reply Last reply
        0
        • R Ramya G

          Hi Mark, I understand ur point. But there are two things that has to be noted here. 1. I am able to send email from an asp page inside the same ftp server to mail server that i mentioned earlier, which means that ftp server and mail server are accessible. 2. I am able to access the mail server from my aspx page in localhost , which means that mail server is accessible from aspx page too. I dont know where exactly the problem is.

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Just because you can access the smtp server from you local host does not mean it can be accessed from from the it is deployed on. If the asp page works, compare it to the aspx page, what is different about the mail aspect. There is obviously something different. Have you debugged on the remote server?


          only two letters away from being an asset

          R 1 Reply Last reply
          0
          • N Not Active

            Just because you can access the smtp server from you local host does not mean it can be accessed from from the it is deployed on. If the asp page works, compare it to the aspx page, what is different about the mail aspect. There is obviously something different. Have you debugged on the remote server?


            only two letters away from being an asset

            R Offline
            R Offline
            Ramya G
            wrote on last edited by
            #5

            After deploying it in the ftp, how is it possible to debug the code? I dnt know the way to do it. Kindly let me know if there is any.

            N 1 Reply Last reply
            0
            • R Ramya G

              After deploying it in the ftp, how is it possible to debug the code? I dnt know the way to do it. Kindly let me know if there is any.

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              http://support.microsoft.com/kb/910448[^] http://www.google.com/search?source=ig&hl=en&rlz=&q=remote+debugging+Visual+Studio[^]


              only two letters away from being an asset

              R 1 Reply Last reply
              0
              • N Not Active

                http://support.microsoft.com/kb/910448[^] http://www.google.com/search?source=ig&hl=en&rlz=&q=remote+debugging+Visual+Studio[^]


                only two letters away from being an asset

                R Offline
                R Offline
                Ramya G
                wrote on last edited by
                #7

                Fine Mark. I will try out remote debugging nd wl get bk. Thank you for your support.

                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