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. sending mail(smtp)

sending mail(smtp)

Scheduled Pinned Locked Moved ASP.NET
csharpcomsysadminquestion
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.
  • P Offline
    P Offline
    ptvce
    wrote on last edited by
    #1

    i want set the smtp for sending an email from admin to a user. any body know how can i do this. can u give me any information about smtp mail setting (sending email from admin to some one when he forgot the password) i set this setting but its not enough: <system.net> <mailSettings> <smtp from="admin@sadafit.com"> <network host="sadafitserver" port="25" /> </smtp> </mailSettings> </system.net>

    M 1 Reply Last reply
    0
    • P ptvce

      i want set the smtp for sending an email from admin to a user. any body know how can i do this. can u give me any information about smtp mail setting (sending email from admin to some one when he forgot the password) i set this setting but its not enough: <system.net> <mailSettings> <smtp from="admin@sadafit.com"> <network host="sadafitserver" port="25" /> </smtp> </mailSettings> </system.net>

      M Offline
      M Offline
      MHASSANF
      wrote on last edited by
      #2

      <system.net> <mailSettings> <smtp from="test@MHF.com"> <network host="smtpserver1" port="25" userName="MHASSANF" password="MHF" defaultCredentials="true" /> </smtp> </mailSettings> </system.net> this is more detail but setting depends on youre server setting first contact to the Administrator

      P 1 Reply Last reply
      0
      • M MHASSANF

        <system.net> <mailSettings> <smtp from="test@MHF.com"> <network host="smtpserver1" port="25" userName="MHASSANF" password="MHF" defaultCredentials="true" /> </smtp> </mailSettings> </system.net> this is more detail but setting depends on youre server setting first contact to the Administrator

        P Offline
        P Offline
        ptvce
        wrote on last edited by
        #3

        host="smtpserver1" smtpserver1 is the server computer name?

        C 1 Reply Last reply
        0
        • P ptvce

          host="smtpserver1" smtpserver1 is the server computer name?

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

          It's the mail server.

          Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          P 1 Reply Last reply
          0
          • C Christian Graus

            It's the mail server.

            Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

            P Offline
            P Offline
            ptvce
            wrote on last edited by
            #5

            Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. i set them this form but give the abow error . do u know what should i do? do u know any refrence that i read it. <system.net> <mailSettings> <smtp from="p@sadafit.com"> <network host="mail.sadafit.com" port="25" userName="p" password="456" defaultCredentials="true"/> </smtp> </mailSettings> </system.net> username and password is the username and password of p@sadafit.com. is it right?

            C 1 Reply Last reply
            0
            • P ptvce

              Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. i set them this form but give the abow error . do u know what should i do? do u know any refrence that i read it. <system.net> <mailSettings> <smtp from="p@sadafit.com"> <network host="mail.sadafit.com" port="25" userName="p" password="456" defaultCredentials="true"/> </smtp> </mailSettings> </system.net> username and password is the username and password of p@sadafit.com. is it right?

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

              you provide the username and password if you need to log into the server. Do you need to log in with outlook ?

              Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

              P 1 Reply Last reply
              0
              • C Christian Graus

                you provide the username and password if you need to log into the server. Do you need to log in with outlook ?

                Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                P Offline
                P Offline
                ptvce
                wrote on last edited by
                #7

                no i dont need. do u know any othe setting for smtp?

                C 1 Reply Last reply
                0
                • P ptvce

                  no i dont need. do u know any othe setting for smtp?

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

                  Well, at the core, if your settings are the same as the ones outlook uses, it should be fine. How are you sending mail ?

                  Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                  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