使用C#.net窗口应用程序发送电子邮件... [英] Sending Email... using C#.net window application..

查看:136
本文介绍了使用C#.net窗口应用程序发送电子邮件...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我向客户端发送电子邮件时,我正在使用C#.net创建窗口应用程序.

client.Send(mailmsg); //错误.交易失败.服务器响应为:中继由于策略原因而被拒绝.
但是当我向外面发送邮件时..已成功发送给他..
不会发送到gmail,sifymail,hotmail等.这是Mailservers的常见安全设置.
您必须更改服务器设置,或询问管理员.


I am creating window application using C#.net when i am sending email to client one error occur.

client.Send(mailmsg); // error. Transaction failed. The server response was: Relay rejected for policy reasons.
but when i am sending mail to out head.. it''s successfully send to him..
not send to gmail,sifymail,hotmail,etc..

解决方案

It seems like your Mailserver does not relay mails to the ''world'', just intern. Thats a common security setting with Mailservers.
You have to change the serversetting, or ask your admins about it.


这篇关于使用C#.net窗口应用程序发送电子邮件...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆