smtpclient
.NET SmtpClient sending EHLO vs HELO
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[详细]
2023-04-08 20:34 分类:问答C# - Can't send mail in WIndows Azure via Gmail SMTP
This is my Web.config: <system.net> <mailSettings> <smtp deliveryMethod=\"Network\"> <network defaultCredentials=\"true\" enableSsl=\"true\" host=\"smtp.gmail.com\" port=\"25\" u[详细]
2023-04-08 00:02 分类:问答System.Net.Mail and MailMessage not Sending Messages Immediately
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[详细]
2023-04-05 02:08 分类:问答What are best practices for using SmtpClient, SendAsync and Dispose under .NET 4.0
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[详细]
2023-04-01 17:48 分类:问答SmtpClient get result from server on send
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?[详细]
2023-04-01 03:14 分类:问答Error handling the SmtpClient object
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[详细]
2023-03-31 06:14 分类:问答SMTP sendasync works in Windows 7 but fails in XP
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[详细]
2023-03-25 16:43 分类:问答SmtpClient.SendAsync blocking my ASP.NET MVC Request
I have a Action that sends a simple email: [HttpPost, ActionName(\"Index\")] public ActionResult IndexPost(ContactForm contactForm)[详细]
2023-03-24 22:22 分类:问答Check if mail was successfully sent in VB.NET with SMTPClient
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[详细]
2023-03-20 05:19 分类:问答Unable to send email to other domains using System.Net.Mail.SmtpClient
Please look at the following code: client.Credentials = new NetworkCredential(SMTP_SERVER_USERNAME, SMTP_SERVER_PASSWORD);[详细]
2023-03-19 19:24 分类:问答