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. Mailing Problem

Mailing Problem

Scheduled Pinned Locked Moved ASP.NET
sysadminhelpcsharpasp-netcom
13 Posts 5 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.
  • D Offline
    D Offline
    deezZ
    wrote on last edited by
    #1

    Hi, I have made a small application in ASP.Net in which whenever the user registers a mail is send to his/her account. It is working sucessfully on my Local machine. But when i deploy it on the server it is giving some error. Following is the snippet from web.config

    <system.net>
    <mailSettings>
    <smtp from="admin@formbag.com">
    <network host="someipaddress" port="25" userName="username" password="password" defaultCredentials="true" />
    </smtp>
    </mailSettings>

    </system.net>
    

    Is there some settings I am missing on server or something else. Thanks in advance.!

    H A V M 4 Replies Last reply
    0
    • D deezZ

      Hi, I have made a small application in ASP.Net in which whenever the user registers a mail is send to his/her account. It is working sucessfully on my Local machine. But when i deploy it on the server it is giving some error. Following is the snippet from web.config

      <system.net>
      <mailSettings>
      <smtp from="admin@formbag.com">
      <network host="someipaddress" port="25" userName="username" password="password" defaultCredentials="true" />
      </smtp>
      </mailSettings>

      </system.net>
      

      Is there some settings I am missing on server or something else. Thanks in advance.!

      H Offline
      H Offline
      himanshu2561
      wrote on last edited by
      #2

      what is the error it giving.. Also,Make sure credentials are fine

      himanshu

      D 1 Reply Last reply
      0
      • H himanshu2561

        what is the error it giving.. Also,Make sure credentials are fine

        himanshu

        D Offline
        D Offline
        deezZ
        wrote on last edited by
        #3

        No errors.. I have checked the event viewer as well as my application lob, but no errors. Its just the mails are not going.

        A H 2 Replies Last reply
        0
        • D deezZ

          Hi, I have made a small application in ASP.Net in which whenever the user registers a mail is send to his/her account. It is working sucessfully on my Local machine. But when i deploy it on the server it is giving some error. Following is the snippet from web.config

          <system.net>
          <mailSettings>
          <smtp from="admin@formbag.com">
          <network host="someipaddress" port="25" userName="username" password="password" defaultCredentials="true" />
          </smtp>
          </mailSettings>

          </system.net>
          

          Is there some settings I am missing on server or something else. Thanks in advance.!

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

          deezZ wrote:

          But when i deploy it on the server it is giving some error.

          What error are you getting? Check the following 1. Deployed server has SMTP Configured 2. Credentials are Correct

          cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

          D 1 Reply Last reply
          0
          • D deezZ

            No errors.. I have checked the event viewer as well as my application lob, but no errors. Its just the mails are not going.

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

            Did you check the SMTP Queue ?

            cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

            1 Reply Last reply
            0
            • A Abhijit Jana

              deezZ wrote:

              But when i deploy it on the server it is giving some error.

              What error are you getting? Check the following 1. Deployed server has SMTP Configured 2. Credentials are Correct

              cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

              D Offline
              D Offline
              deezZ
              wrote on last edited by
              #6

              Is there any requirement to setup SMTP server on the Server as i am providing the connections settings of the SMTP in the web.config The mailing server is different from the deployment server.

              A 1 Reply Last reply
              0
              • D deezZ

                No errors.. I have checked the event viewer as well as my application lob, but no errors. Its just the mails are not going.

                H Offline
                H Offline
                himanshu2561
                wrote on last edited by
                #7

                In your initial post you have written it is giving some error. Without knowing error it is very difficult to suggest.Have u implement proper error handling to catch errors

                himanshu

                D 1 Reply Last reply
                0
                • H himanshu2561

                  In your initial post you have written it is giving some error. Without knowing error it is very difficult to suggest.Have u implement proper error handling to catch errors

                  himanshu

                  D Offline
                  D Offline
                  deezZ
                  wrote on last edited by
                  #8

                  Oh I am sorry .. It is not giving any error but it is just not sending the mails. I have created a global exception handling mechnism, and there are no errors logged. I am sorry for the misleading information.

                  1 Reply Last reply
                  0
                  • D deezZ

                    Hi, I have made a small application in ASP.Net in which whenever the user registers a mail is send to his/her account. It is working sucessfully on my Local machine. But when i deploy it on the server it is giving some error. Following is the snippet from web.config

                    <system.net>
                    <mailSettings>
                    <smtp from="admin@formbag.com">
                    <network host="someipaddress" port="25" userName="username" password="password" defaultCredentials="true" />
                    </smtp>
                    </mailSettings>

                    </system.net>
                    

                    Is there some settings I am missing on server or something else. Thanks in advance.!

                    V Offline
                    V Offline
                    Vasudevan Deepak Kumar
                    wrote on last edited by
                    #9

                    deezZ wrote:

                    some

                    'some', 'something' and variants of these would not take you any further. You ought to be little clear and descriptive on what is crashing so that people can help you out.

                    Vasudevan Deepak Kumar Personal Homepage
                    Tech Gossips
                    The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!

                    1 Reply Last reply
                    0
                    • D deezZ

                      Is there any requirement to setup SMTP server on the Server as i am providing the connections settings of the SMTP in the web.config The mailing server is different from the deployment server.

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

                      deezZ wrote:

                      Is there any requirement to setup SMTP server on the Server as i am providing the connections settings of the SMTP in the web.config The mailing server is different from the deployment server.

                      Did you understand what I have asked ? Does your deployed Server has SMTP Configured ? It means If you have deployed your application on IIS Server, you IIS should have also SMTP Configure [ If your SMTP is different ]

                      deezZ wrote:

                      The mailing server is different from the deployment server.

                      That's cool ! IS it working fine ?

                      cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

                      D 1 Reply Last reply
                      0
                      • A Abhijit Jana

                        deezZ wrote:

                        Is there any requirement to setup SMTP server on the Server as i am providing the connections settings of the SMTP in the web.config The mailing server is different from the deployment server.

                        Did you understand what I have asked ? Does your deployed Server has SMTP Configured ? It means If you have deployed your application on IIS Server, you IIS should have also SMTP Configure [ If your SMTP is different ]

                        deezZ wrote:

                        The mailing server is different from the deployment server.

                        That's cool ! IS it working fine ?

                        cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

                        D Offline
                        D Offline
                        deezZ
                        wrote on last edited by
                        #11

                        Hi. How do I need to configure the SMTP server ..

                        1 Reply Last reply
                        0
                        • D deezZ

                          Hi, I have made a small application in ASP.Net in which whenever the user registers a mail is send to his/her account. It is working sucessfully on my Local machine. But when i deploy it on the server it is giving some error. Following is the snippet from web.config

                          <system.net>
                          <mailSettings>
                          <smtp from="admin@formbag.com">
                          <network host="someipaddress" port="25" userName="username" password="password" defaultCredentials="true" />
                          </smtp>
                          </mailSettings>

                          </system.net>
                          

                          Is there some settings I am missing on server or something else. Thanks in advance.!

                          M Offline
                          M Offline
                          madancode
                          wrote on last edited by
                          #12

                          HI deezZ, Checkout does you have any firewall restriction in server, as you can send the mail from local machine their would be some possibilities for this.

                          D 1 Reply Last reply
                          0
                          • M madancode

                            HI deezZ, Checkout does you have any firewall restriction in server, as you can send the mail from local machine their would be some possibilities for this.

                            D Offline
                            D Offline
                            deezZ
                            wrote on last edited by
                            #13

                            Nopes.. there are no firewall which is blocking the mails.

                            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