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. General Programming
  3. C#
  4. Email In C#

Email In C#

Scheduled Pinned Locked Moved C#
csharpdatabasequestion
9 Posts 4 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.
  • K Offline
    K Offline
    kibromg
    wrote on last edited by
    #1

    Hi all, if someone forgets there password for login to a website, i would like to send them an email with there username and password by quering the database. Can any one advice me on the C# code that is used for sending email to a user? Thank you in advance.

    C 1 Reply Last reply
    0
    • K kibromg

      Hi all, if someone forgets there password for login to a website, i would like to send them an email with there username and password by quering the database. Can any one advice me on the C# code that is used for sending email to a user? Thank you in advance.

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

      If you search this site for an article called 'how to use google', you'll find that I both answer your question, and the underlying question that caused you to need to ask this.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      K 1 Reply Last reply
      0
      • C Christian Graus

        If you search this site for an article called 'how to use google', you'll find that I both answer your question, and the underlying question that caused you to need to ask this.

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        K Offline
        K Offline
        kibromg
        wrote on last edited by
        #3

        Hi Christain, Thank you for your response. Can you at least learn to be polite? Any ways I have the Answer : System.Net.NetworkCredential SMTPUserInfo = new System.Net.NetworkCredential(sSMTPUser, sSMTPPass); SmtpClient emailClient = new SmtpClient("smtp.gmail.com",587); The 587 works with some mail Client but not with others like Gmail, etc...

        L 2 Replies Last reply
        0
        • K kibromg

          Hi Christain, Thank you for your response. Can you at least learn to be polite? Any ways I have the Answer : System.Net.NetworkCredential SMTPUserInfo = new System.Net.NetworkCredential(sSMTPUser, sSMTPPass); SmtpClient emailClient = new SmtpClient("smtp.gmail.com",587); The 587 works with some mail Client but not with others like Gmail, etc...

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          He is being polite, and you're being lazy. You can find out what port Google expects by Googling for "SMTP port gmail". Good luck :)

          I are troll :)

          1 Reply Last reply
          0
          • K kibromg

            Hi Christain, Thank you for your response. Can you at least learn to be polite? Any ways I have the Answer : System.Net.NetworkCredential SMTPUserInfo = new System.Net.NetworkCredential(sSMTPUser, sSMTPPass); SmtpClient emailClient = new SmtpClient("smtp.gmail.com",587); The 587 works with some mail Client but not with others like Gmail, etc...

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            kibromg wrote:

            Can you at least learn to be polite?

            Watch your tone there, Christian Graus has been a member at codeproject for years, with over 50,000 posts and 30 articles, his Fixture/Legend status has been earned. You are a firstly and obviously a beginner and new to programming, you're putting in NO effort to make your system functional other then expecting your work handed to you. I'll be less polite then others, get the fuck off your ass and go learn to use Google, and if you can't find your answer there then guess what, it's time to find a different fucking profession, one that is more suited to your (lack of) intelligence. How's that for polite, buddy?

            Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]

            L 1 Reply Last reply
            0
            • L Lost User

              kibromg wrote:

              Can you at least learn to be polite?

              Watch your tone there, Christian Graus has been a member at codeproject for years, with over 50,000 posts and 30 articles, his Fixture/Legend status has been earned. You are a firstly and obviously a beginner and new to programming, you're putting in NO effort to make your system functional other then expecting your work handed to you. I'll be less polite then others, get the fuck off your ass and go learn to use Google, and if you can't find your answer there then guess what, it's time to find a different fucking profession, one that is more suited to your (lack of) intelligence. How's that for polite, buddy?

              Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              EliottA wrote:

              How's that for polite, buddy?

              Not much, I'm afraid. However it is pretty clear, except for some asterisks. Do you really need 27 letters in your alphabet? :laugh:

              Luc Pattyn [Forum Guidelines] [My Articles]


              The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


              L 1 Reply Last reply
              0
              • L Luc Pattyn

                EliottA wrote:

                How's that for polite, buddy?

                Not much, I'm afraid. However it is pretty clear, except for some asterisks. Do you really need 27 letters in your alphabet? :laugh:

                Luc Pattyn [Forum Guidelines] [My Articles]


                The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                I could have circumvented then filter, but I didn't feel it appropriate. Those responses truly get to me, especially when geared towards people with high post/article counts who have contributed more then enough for others. I knew zilch about programming before I stumbled my butt onto this site, and learned from various tutorials and posts before I began to post myself. So retorts like that, insulting from people from whom I've directly (or indirectly) learned off of comes as a direct insult to me.

                Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]

                L 1 Reply Last reply
                0
                • L Lost User

                  I could have circumvented then filter, but I didn't feel it appropriate. Those responses truly get to me, especially when geared towards people with high post/article counts who have contributed more then enough for others. I knew zilch about programming before I stumbled my butt onto this site, and learned from various tutorials and posts before I began to post myself. So retorts like that, insulting from people from whom I've directly (or indirectly) learned off of comes as a direct insult to me.

                  Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]

                  L Offline
                  L Offline
                  Luc Pattyn
                  wrote on last edited by
                  #8

                  Yes, you and I both don't like what was said. However, if I would want to call someone impolite, I would still try and do so in a polite way if such is possible at all. :rose:

                  Luc Pattyn [Forum Guidelines] [My Articles]


                  The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


                  K 1 Reply Last reply
                  0
                  • L Luc Pattyn

                    Yes, you and I both don't like what was said. However, if I would want to call someone impolite, I would still try and do so in a polite way if such is possible at all. :rose:

                    Luc Pattyn [Forum Guidelines] [My Articles]


                    The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


                    K Offline
                    K Offline
                    kibromg
                    wrote on last edited by
                    #9

                    Sorry Guys.Appologies

                    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