使用SMTP来自vb.net 2005的电子邮件 [英] Email from vb.net 2005 using SMTP

查看:155
本文介绍了使用SMTP来自vb.net 2005的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用system.net.mail从smtp客户端发送电子邮件,如果我在公司的smtp服务器中收发邮件,则它可以正常工作,但是,如果我将邮件发送到hotmail,rediff,gmail 等(全部) id是有效的已知电子邮件id),它会显示

I am trying to send email from smtp client by using system.net.mail, if i send and receive in my companies smtp server it works properly, however if i send mail to hotmail, rediff, gmail etc (all ids are valid known email id ), it gives error like

邮箱不可用.服务器响应是:不是本地主机gmail.com,不是网关

请给我一个解决方法.

谢谢

阿塔努

 

推荐答案

向其发送邮件时使用的是哪个SMTP服务器?
像Hotmail,rediff和gmail这样的大多数公司都要求正确设置电子邮件服务器.通常,这包括在IP,SPF记录等中使用反向名称等.如果您公司的电子邮件服务器安装不正确,则可能会这样.
如果您的邮件服务器是面向公众的,那么您可以尝试使用此测试查看是否存在问题.但是,如果您不是公司的网络管理员,则可能无法进行任何必要的更改.

希望这会有所帮助.
What SMTP server are you using when you send mail to?
most companies like Hotmail, rediff and gmail require email servers to be setup correctly. Often times this includes having a reverse name for the IP, SPF records, etc, amongst many other things. If your company's email server is not setup properly then this may.
If your mail server is public facing then you can try using this test to see if there are  problems. Chances are however that if you are not the network administration for the company any necessary changes won't be able to be made.

Hope this helps.


这篇关于使用SMTP来自vb.net 2005的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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