没有凭证的情况下如何发送邮件
问题描述:
在不使用凭据的情况下,如何使用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 :)