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 Email in asp.net

Unable to send Email in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdata-structureshelp
4 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.
  • S Offline
    S Offline
    ShuklaGirish
    wrote on last edited by
    #1

    Hi, I am not able to send Email in asp.net,my code is running properly there are no errors or exceptions but my email is getting stored at "C:\Inetpub\mailroot\Queue" folder.Wt could be the problem. Pls suggest. GIRISH

    C 1 Reply Last reply
    0
    • S ShuklaGirish

      Hi, I am not able to send Email in asp.net,my code is running properly there are no errors or exceptions but my email is getting stored at "C:\Inetpub\mailroot\Queue" folder.Wt could be the problem. Pls suggest. GIRISH

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Hard to say without seeing the code. Best guess is that you're using a local mail server ( so that's why it is there ), and it's not sending the mail.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      S 1 Reply Last reply
      0
      • C Christian Graus

        Hard to say without seeing the code. Best guess is that you're using a local mail server ( so that's why it is there ), and it's not sending the mail.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        S Offline
        S Offline
        ShuklaGirish
        wrote on last edited by
        #3

        Hi,thanks for ur reply, this is my code, SmtpClient c = new SmtpClient("198.168.1.77"); MailMessage message = new MailMessage("shuklagirish@hotmail.com", "girish.javanet@gmail.com", "test", "Hello!!Test message from asp.net"); c.Send(message); Yes i am having proxy server internet and this ip address is of local machine so should i specify ip of Proxy server and also in the smtpserver of local machine whcih ip should i specify???

        C 1 Reply Last reply
        0
        • S ShuklaGirish

          Hi,thanks for ur reply, this is my code, SmtpClient c = new SmtpClient("198.168.1.77"); MailMessage message = new MailMessage("shuklagirish@hotmail.com", "girish.javanet@gmail.com", "test", "Hello!!Test message from asp.net"); c.Send(message); Yes i am having proxy server internet and this ip address is of local machine so should i specify ip of Proxy server and also in the smtpserver of local machine whcih ip should i specify???

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          ShuklaGirish wrote:

          new SmtpClient("198.168.1.77");

          This needs to be a real mail server, one that actually sends mail.

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          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