其他域的电子邮件发送 [英] Email Sending for other domains

查看:113
本文介绍了其他域的电子邮件发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用smtp服务器将电子邮件发送到其他域?

例如-电子邮件ID-info@icon.com
主机-www.icon.com

谢谢:)

问候
harsha:)

How to send an email using smtp server to other domains?

Eg - Email id - info@icon.com
host - www.icon.com

Thanks :)

Regards
harsha :)

推荐答案

您可能需要一些身份验证,ssl或来自另一方的信任.这取决于几个配置和基础结构设置.您提供的细节太少了.您是否有任何错误消息,是否尝试过telnet?...
You probably need some authentication, ssl, or trust from other party''s side. It depends on several configuration and infrastructure settings. You provided far too few details. Have you got any error message, have you tried with telnet?...


string Email = abc@abc.com

 SmtpClient client = new SmtpClient(ServerIPAddress);

 MailMessage  message = new MailMessage(messenger@abc.com,Email.Trim());

 message.Subject ="Hi this is Ayush Chaudhary";

 client.Credentials = new System.Net.NetworkCredential("MailServerUserName","Pwd");
             
 client.Port = System.Convert.ToInt32(PortNo);

 client.Send(message);





默认情况下,端口号为25

要将邮件发送到其他域,您必须提供您的域用户名或密码.

该帖子对您有用吗?............这个示例可以将邮件发送到任何其他域和域中.





By Default port number is 25

for sending mail to other domain you have to give your domain username or password.

Is this post is relevant for you................ This sample can send mail to any other domain and in domain.


这篇关于其他域的电子邮件发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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