本文介绍了如何解决附加信息:系统存储不足。服务器响应是:4.3.1系统存储不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 其他信息:系统存储不足。服务器响应如下:4.3.1系统存储空间不足 我尝试过: public void SendMail(string ReservationNumber,string ReceiverEmail,string FirstName,string LastName) $ string Host = ConfigurationManager .AppSettings [Host]; int Port = Convert.ToInt16(ConfigurationManager.AppSettings [Port]); string Domain = ConfigurationManager.AppSettings [Domain ]; string SenderEmail = ConfigurationManager.AppSettings [SenderEmail]; string AdminEmail = ConfigurationManager.AppSettings [AdminEmail]; string MailBody; string MailSubject =Reservation; string filePath = Server.MapPath( 〜/ reservation-welcom.htm); // string mailTextTemplate = ReadFromFile(fi lePath); string mailTextTemplate = System.IO.File.ReadAllText(filePath); // TextReader textReader = File.OpenText(〜/ register_confirm.htm) ; //或 MailBody = mailTextTemplate; MailBody = MailBody .Replace(~~ receiverName ~~,FirstName ++ LastName); MailBody = MailBody.Replace(~~ siteName ~~,www.ridecentric.com); MailBody = MailBody.Replace(~~ siteTitle ~~,www.ridecentric.com); MailBody = MailBody.Replace(~~ reservationNumber~ 〜,ReservationNumber); MailBody = MailBody.Replace(~~ adminEmail ~~,SenderEmail); MailBody = MailBody .Replace(~~ adminName ~~,Admin); MailSubject = MailSubject.Replace(~~ receiverName ~~,ReceiverEmail); MailSubject = MailSubject.Replace(~~ siteName ~~,www.ridecentric.com); MailSubject = MailSubject。替换(~~ siteTitle ~~,RideCentric); MailSubject = MailSubject.R eplace(~~ adminEmail ~~,AdminEmail); MailSubject = MailSubject.Replace(~~ adminName ~~,Admin); MailMessage message = new MailMessage(SenderEmail,ReceiverEmail,MailSubject,MailBody); message.Attachments.Add(new Attachment(Server.MapPath( 〜/ Pdf /)+Test.pdf)); message.IsBodyHtml = true; if(ReceiverEmail! =) { SmtpClient客户端=新的SmtpClient(主机,端口); client.EnableSsl = false; client.DeliveryMethod = SmtpDeliveryMethod.Network; client.Send(message); message.Dispose(); } } 解决方案 这是一个服务器端问题。 也许这篇文章会为你提供一个亮点: 没有收到电子邮件 - 4.3.1系统资源不足 [ ^ ] Additional information: Insufficient system storage. The server response was: 4.3.1 Insufficient system storageWhat I have tried:public void SendMail (string ReservationNumber, string ReceiverEmail, string FirstName, string LastName) { string Host = ConfigurationManager.AppSettings["Host"]; int Port = Convert.ToInt16(ConfigurationManager.AppSettings["Port"]); string Domain = ConfigurationManager.AppSettings["Domain"]; string SenderEmail = ConfigurationManager.AppSettings["SenderEmail"]; string AdminEmail = ConfigurationManager.AppSettings["AdminEmail"]; string MailBody; string MailSubject = "Reservation"; string filePath = Server.MapPath("~/reservation-welcom.htm"); //string mailTextTemplate = ReadFromFile(filePath); string mailTextTemplate = System.IO.File.ReadAllText(filePath); //TextReader textReader = File.OpenText("~/register_confirm.htm"); // or MailBody = mailTextTemplate; MailBody = MailBody.Replace("~~receiverName~~", FirstName + " " + LastName); MailBody = MailBody.Replace("~~siteName~~", "www.ridecentric.com"); MailBody = MailBody.Replace("~~siteTitle~~", "www.ridecentric.com"); MailBody = MailBody.Replace("~~reservationNumber~~", ReservationNumber); MailBody = MailBody.Replace("~~adminEmail~~", SenderEmail); MailBody = MailBody.Replace("~~adminName~~", "Admin"); MailSubject = MailSubject.Replace("~~receiverName~~", ReceiverEmail); MailSubject = MailSubject.Replace("~~siteName~~", "www.ridecentric.com"); MailSubject = MailSubject.Replace("~~siteTitle~~", "RideCentric"); MailSubject = MailSubject.Replace("~~adminEmail~~", AdminEmail); MailSubject = MailSubject.Replace("~~adminName~~", "Admin"); MailMessage message = new MailMessage(SenderEmail, ReceiverEmail, MailSubject, MailBody); message.Attachments.Add(new Attachment(Server.MapPath("~/Pdf/") +"Test.pdf")); message.IsBodyHtml = true; if (ReceiverEmail != "") { SmtpClient client = new SmtpClient(Host, Port); client.EnableSsl = false; client.DeliveryMethod = SmtpDeliveryMethod.Network; client.Send(message); message.Dispose(); } } 解决方案 It's a server-side problem.Maybe this article will sched a light on it for you:Not receiving email - "4.3.1 Insufficient system resources"[^] 这篇关于如何解决附加信息:系统存储不足。服务器响应是:4.3.1系统存储不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 06-15 08:19