没有凭证的情况下如何发送邮件 [英] Without Credentials how to send a mail

查看:72
本文介绍了没有凭证的情况下如何发送邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




在不使用凭据的情况下,如何使用C#.net在asp.net中发送邮件.


Hi,


With out using credentials how to send a mail in asp.net by using C#.net.


thanks in advance.

推荐答案

通常,您不能-它不取决于您的软件,而取决于电子邮件系统本身.如果需要身份验证,则必须提供凭据才能发送.
这里有一个使用凭据的通用例程:发送带有或不带有附件的C#电子邮件:通用例程. [ ^ ]-您可以删除身份验证部分,看看它是否有效.不过,如果我是您,我不会寄予太大希望...
Generally speaking, you can''t - it depends not on your software, but on the email system itself. If it requires authentication, then you must provide credentials in order to send.
There is a generic routine that works with credentials here: Sending an Email in C# with or without attachments: generic routine.[^] - you could remove the authentication part and see if it works. I wouldn''t hold out too much hope though, if I was you...


只有在您的邮件服务器允许匿名身份验证的情况下,才可以不使用凭据来发送邮件.否则不可能.

希望对您有所帮助:)
To send mail without credential is possible only if your mail server allows anonymous authentication. Otherwise its not possible.

hope it helps :)


这篇关于没有凭证的情况下如何发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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