通过ASP.NET发送邮件 [英] Sending Mail via ASP.NET

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

问题描述

亲爱的所有人,

我最近发布了一个有关使用ASP.NET发送邮件的查询.

我没有收到任何错误,也没有发送邮件.

但是突然之间,今天,在我发送邮件地址的垃圾邮件"文件夹中,我发现无法发送的邮件.

原因如下.

"

Dear All,

I recently had posted one query regarding sending of mails using ASP.NET.

I was not getting any error neither was my mail sent.

But suddenly, today in the Spam folder of my sending mail address I found undeliverable mails.

the reason was as below.

"

The IP you're using to send mail is not authorized
550-5.7.1 to send email directly to our servers. Please use the SMTP relay at
550-5.7.1 your service provider instead.


"
现在,谁能告诉我如何授权我的IP或如何从自己的PC发送邮件...这是我的项目非常需要的.

Mu UI与在CP中通过ASP.NET发送邮件的示例相同.



请协助.

Mukund


"
Now can anybody tell me how to authorize my IP or how can I send mails from my own PC...This is extremely required for my project.

Mu UI is the same as mentioned as an example for sending Mails via ASP.NET in CP.



Kindly assist.

Mukund

推荐答案

我知道这不是您想要的答案,但是您会发现我很可能在忙. >
您不必做任何与以前不同的事情.您的代码听起来像是可行的,并且您没有遇到运行时异常.

发生的情况是,您正面临反垃圾邮件保护,并且您最终将无法采取任何措施来解决它.期间.

此外,如果您尝试从本地IP发送邮件,那么您将无休止地与黑名单作斗争.如果您坚持要在家中运行,最好的选择是获取一个域名并让您的ISP将反向DNS条目从rDNS的动态"自动命名类更改为mail.whateveryourdomainis.com因此全世界都知道它不仅是垃圾邮件服务器.

如果您在做合法的事情(例如用于商业活动),请与您的ISP联系,并询问他们是否有可以为您提供帐户的邮件中继.我的服务器有这样的服务器,并且没有住宅邮件发送限制.

如果这是一个商业项目(将要转售),请确保为最终用户提供一些配置选项(或使用ASP.NET中的SMTP配置部分).

干杯.
I know this won''t be the answer you want, but you''ll find that I''m probably bang-on.

You don''t have to do anything different from what you previously did. Your code sounds like it works and you aren''t getting runtime exceptions.

What''s happening is that you are running into anti-spam protection and won''t be able to get around it with anything you do on your end. Period.

Besides, if you''re trying to send from your local IP you''ll endlessly be fighting blacklists. The best bet, if you insist on running it from home, would be to get a domain name and get your ISP to change your reverse DNS entry from the ''dynamic'', auto-named class of rDNS to mail.whateveryourdomainis.com so the world knows that it''s not just a spam server.

If you''re doing something legitimate (like for business) contact your ISP and ask if they have a mail relay that you can get an account for. Mine has such a server and does not have the residential mail send limits on it.

If this is a commercial project (that you will be reselling) make sure you seed in some configuration options (or use the SMTP configuration section in ASP.NET) for your end users.

Cheers.


这篇关于通过ASP.NET发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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