VS .net 2010 Mail Server Authentication
-
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!
-
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!
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 -
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 KreskowiakThe 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
-
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
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