2010-08-27 157 views
-1

我已经下载了一个示例应用程序发送电子邮件silverlight应用程序在这里。SMTP错误:失败发送电子邮件

via gmail。但我不能让它工作。它的错误是“发送邮件失败。”

{"Failure sending mail."} [System.Net.Mail.SmtpException]: {"Failure sending mail."} Data: {System.Collections.ListDictionaryInternal} HelpLink: null InnerException: {"Unable to connect to the remote server"} Message: "Failure sending mail." Source: "System" StackTrace: " at System.Net.Mail.SmtpClient.Send(MailMessage message)\r\n at SLSentEmail.Web.Services.EmailService.SendEmail(SLEmailMessage emailMessage) in C:\Downloads\Temp\SLSentEmail\SLSentEmail\SLSentEmail.Web\Services\EmailService.svc.cs:line 27" TargetSite: {Void Send(System.Net.Mail.MailMessage)}

回答

0

不知道您的设置或代码,我会查看内部异常 - “无法连接到远程服务器”。

你确实有权访问SMTP服务器吗?

由于系统或网络防火墙,是否可能有阻止? 某些ISP阻止端口25以阻止僵尸垃圾邮件,您可能需要通过不同的端口进行连接。

相关问题