Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Smtp 需要从本地PC发送测试电子邮件_Smtp - Fatal编程技术网

Smtp 需要从本地PC发送测试电子邮件

Smtp 需要从本地PC发送测试电子邮件,smtp,Smtp,我正在开发一个ASP.Net web应用程序来发送电子邮件,但是周末在家里这样做,并且无法访问组织的smtp服务器来发送邮件。我通过应用程序向自己发送测试电子邮件的选项有哪些?我曾尝试使用我的凭据和ssl端口号插入Google的smtp设置,但当我插入时,在事件查看器中出现以下异常: Exception information: Exception type: IOException Exception message: Unable to read data from the transp

我正在开发一个ASP.Net web应用程序来发送电子邮件,但是周末在家里这样做,并且无法访问组织的smtp服务器来发送邮件。我通过应用程序向自己发送测试电子邮件的选项有哪些?我曾尝试使用我的凭据和ssl端口号插入Google的smtp设置,但当我插入时,在事件查看器中出现以下异常:

Exception information: 
Exception type: IOException 
Exception message: Unable to read data from the transport connection: net_io_connectionclosed. at system.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine) at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine) at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller) at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint) at System.Net.Mail.SmtpTransport.GetConnection(ServicePoint servicePoint) at System.Net.Mail.SmtpClient.GetConnection()
在System.Net.Mail.SmtpClient.Send(邮件消息)上

我想知道在这一点上我有什么选择。是否有公共SMTP服务器/服务可用于向您自己发送邮件

编辑-我尝试了一些基于其他帖子的其他smtp设置:

<network enableSsl="true" password="XXXXX" userName="XXXXX@gmail.com" host="smtp.gmail.com" port="587" />
做你想做的事,并将接受没有凭据的电子邮件,并允许你在测试电子邮件到达时进行投票


    Exception type: SmtpException 
    Exception message: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at
   at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
   at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode)
   at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at Tricare.handlers.ContactUs.SubmitForm() in c:\TFS\Tricare\Upgrade-branch\Website\handlers\ContactUs.ashx.cs:line 201
   at Tricare.handlers.ContactUs.ProcessRequest(HttpContext context) in c:\TFS\Tricare\Upgrade-branch\Website\handlers\ContactUs.ashx.cs:line 47
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)