返回首页

嗨,

我面对这个问题,从我的网站链接的电子邮件帐户发送电子邮件。

非本地用户,请尝试不同的路径。服务器响应为:发件人地址不是有效的登录。

检查您的电子邮件程序设置。

Exception Details: System.Net.Mail.SmtpException: User not local; please try a different path. The server response was: Sender address is not valid for your login. Check your email program settings.

 



 

Line 21:         'send the message

Line 22:         Dim smtp As New SmtpClient("mail.dadaremoval.com.au")

Line 23:         smtp.Send(mail)

Line 24: 

Line 25:         'Response.Redirect("thanks.htm", False)



ITS SHOWING THE ERROR ON LINE 23

我使用此代码来发送电子邮件。
{C}请帮我解决这个问题。

谢谢

回答

评论会员:游客 时间:2012/02/07
|suhailnoorpawane:这是在C#检查的VB类似codepreSystem.Net.Mail.MailMessageMessage=spanclass="code-keyword"new/spanSystem.Net.Mail.MailMessage();Message.From=spanclass="code-keyword"new/spanSystem.Net.Mail.MailAddress(FromId));/pre/code我想这应该解决您的问题|coded007
引用:: | coded007
评论会员:游客 时间:2012/02/07
imgsrc=]看看:coded007|
您好
或者检查SMTP服务器设置:我觉得你不使用在下面重定向页面

{体C3}
在此页,你给你的过程放慢参数querystring的

{的C4}