是否有其他方法可以通过ASP.Net发送电子邮件而不使用SMTP? [英] Is there any other way to sent email via ASP.Net without using SMTP?

查看:94
本文介绍了是否有其他方法可以通过ASP.Net发送电子邮件而不使用SMTP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在OS中开发Web应用程序-> Windows 7 ...无法找到smtp服务器.. n远程访问smtp.gmail但发生错误->无法远程服务器.内部的例外是尝试对不可达的网络进行套接字操作. :((除了使用SMTP以外,还有其他发送电子邮件的选项吗?或者更好地使用我自己的域而不使用SMTP?

Hi everyone,

I am developing web app in OS-->windows 7...cant find the smtp server.. n have remotely to smtp.gmail but error occur --> unable to remote server. and the inner exception was A socket operation was attempted to an unreachable network. :(( Is there any other option to sent email other than using SMTP? or better to used my own domain and not using SMTP?

推荐答案

当然,而不是从您自己的域发送邮件,请使用已经启用了发送邮件的外部域.

检查一下.
如何通过VB.NET或C#从GMAIL帐户发送邮件. Windows编程,具有一定的自定义功能 [ ^ ]

:thumbsup:
Of course, rather than sending mail from your own domain, use external domain that already enables sending mails.

Check this.
How to Send Mails from your GMAIL Account through VB.NET or C#. Windows Programming, with a Bit of Customization[^]

:thumbsup:


我认为您在这里混淆了两个不同的术语. SMTP是协议,而不是域.另外,地址开头的smtp只是告诉服务器在哪里看起来像www开头. smtp.mailserver.com只是意味着您要与.com域中的mailserver联系,并希望与其通信.

您可能无法联系服务器的另一个原因.可能您只需要打开端口25或授予您的应用程序访问权限即可在Windows 7的防火墙中与外界通信并完成操作.

祝您好运!
I think you mix up two different terms here. SMTP is a protocol and not a domain. Also, the smtp at the start of the address is simply telling the server where to look just like with www at the beginning. smtp.mailserver.com is simply meaning you want to contact mailserver in the .com domain and want to communicate smtp with it.

There is probably another reason that you can''t contact the server. Probably you simply need to open port 25 or give your application access to communicate to the outside world in the firewall of windows 7 and your done.

Good luck!


是的,Yup已经使用我自己的域而不是gmail.com来实现了这两个答案.并且我已经打开了端口25,谢谢您的工作. :laugh:
Yup already accpeted both of the answer.. using my own domain rather than gmail.com and ive already open the port 25 and its work thanks you. :laugh:


这篇关于是否有其他方法可以通过ASP.Net发送电子邮件而不使用SMTP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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