smtpexception

SmtpException while sending Email

梦想与她 提交于 2019-12-02 18:12:40
问题 I am trying to send Email through my C# code but I am getting SmtpException A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 173.194.67.109:587 Here is how I am sending Email: string HostAddress = "smtp.gmail.com"; MailMessage msg = new MailMessage(); msg.From = new MailAddress(fromEmail); msg.Subject = "Test Email"; msg.Body = "Hi testing invoice"; msg

System.Net.Mail.SmtpException: Insufficient system storage. The server response was: 4.3.1 Insufficient system resources

别等时光非礼了梦想. 提交于 2019-12-01 16:59:44
问题 I've recently designed a program in C# that will pull information from SQL databases, write an HTML page with the results, and auto-email it out. I've got everything working [sporadically], the problem I'm having is that I seem to be crashing our company's exchange server. After the first few successful runs of the program, I'll start getting this exception: Base exception: System.Net.Mail.SmtpException: Insufficient system storage. The server response was: 4.3.1 Insufficient system resources