简体   繁体   中英

error sending email in .NET

i am getting an error saying "5.7.1: Unable to relay for xxx@gmail.com"

any ideas what this means?

It means that the SMTP server you are using doesn't allow relaying - this could be because you're not authenticating, or not sending to an email address that is local. There is an option (in IIS SMTP anyway) to allow relaying without authentication

SMTP服务器必须配置为将邮件中继到其他域。

Did you specify a SMTP server? Can we see some of your code?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM