Running into a peculiar issue.I have an SMTP server that I need to authenticate to in order to send mail.We have a C# service that is designed to automatically do this, however the server host has con
This is my Web.config: <system.net> <mailSettings> <smtp deliveryMethod=\"Network\"> <network defaultCredentials=\"true\" enableSsl=\"true\" host=\"smtp.gmail.com\" port=\"25\" u
When I sent a mail using System.Net.Mail, it seems that the messages do not send immediately. They take a minute or two before reaching my inbox. Once I quit the application, all of the messages are r
I\'m a bit perplexed on how to manage SmtpClient now that it is disposable, especially if I make calls using SendAsync.Presumably I should not call Dispose until SendAsync completes.But should I ever
The SmtpClient send method returns void. Is there any way to get the server response? Do I just assume it was successful unless it throws an exception?
I\'m using the code below to process the results of mail sending using System.Net.Mail.SmtpClient and am having problems trapping a true \'send failure\' vs \'opps...let me try that again, oh great, i
I\'m struggling with an error message I\'m receiving when sending individual eamils from our in-house C# application via smtp.It works fine in Windows 7 but we receive the following error message on o
I have a Action that sends a simple email: [HttpPost, ActionName(\"Index\")] public ActionResult IndexPost(ContactForm contactForm)
I\'m trying to create an application that sends an email to an smtp-server. The server is not set fixed, but will be looked up according to the domainpart of the email-address where the email should
Please look at the following code: client.Credentials = new NetworkCredential(SMTP_SERVER_USERNAME, SMTP_SERVER_PASSWORD);