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. Visual Studio
  4. VS .net 2010 Mail Server Authentication

VS .net 2010 Mail Server Authentication

Scheduled Pinned Locked Moved Visual Studio
csharpvisual-studiosysadminsecurityquestion
4 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.
  • S Offline
    S Offline
    stevelizardi
    wrote on last edited by
    #1

    I had a program that simply put the mail server to be used for outgoing mail. Now that I want to change it, I would like to add authentication to it. Is it simply a easy way to tell the program to use it within the code? (I can provide code when needed) Thanks!

    D 1 Reply Last reply
    0
    • S stevelizardi

      I had a program that simply put the mail server to be used for outgoing mail. Now that I want to change it, I would like to add authentication to it. Is it simply a easy way to tell the program to use it within the code? (I can provide code when needed) Thanks!

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You've put all these "it"s in your question and not a clue to what they are refering to...

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        You've put all these "it"s in your question and not a clue to what they are refering to...

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak

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

        The question is how to add authentication for a mail server. This is the only place where the code shows the mail server. Here is the code: Dim EmailServer As String = "servername" ' This string holds our email server name Dim Generic_Message As String = "" Dim ReceptionEmail As String = "recept" 'holds the email address

        Richard DeemingR 1 Reply Last reply
        0
        • S stevelizardi

          The question is how to add authentication for a mail server. This is the only place where the code shows the mail server. Here is the code: Dim EmailServer As String = "servername" ' This string holds our email server name Dim Generic_Message As String = "" Dim ReceptionEmail As String = "recept" 'holds the email address

          Richard DeemingR Offline
          Richard DeemingR Offline
          Richard Deeming
          wrote on last edited by
          #4

          You seem to be missing about 90% of your code. How is declaring and initializing three string variables going to send an email? If you're using the classes from the System.Net.Mail[^] namespace to send your message, then you'll need to set the SmtpClient.Credentials[^] property. If you're using something else, you'll need to tell us what it is!


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

          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