在CDO / CDONTS中指定user + pwd [英] specify user+pwd in CDO/CDONTS
本文介绍了在CDO / CDONTS中指定user + pwd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好
我有一个邮件服务器需要Windows身份验证才能发送电子邮件。
你们能告诉我一个如何的例子指定用户和密码
CDO / CDONTS?
i无法将其配置为无需认证即可发送。
TIA
/ Lasse
解决方案
我不认为CDO.Message支持这一点。 ASPEmail的商业版
确实如此( http://www.aspemail。 com / )
-
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
" Lasse Edsvik" < LA *** @ nospam.com>在消息中写道
新闻:#3 ************** @ TK2MSFTNGP10.phx.gbl ...你好
我有一个邮件服务器需要Windows身份验证才能发送
的电子邮件。
你们能告诉我一个如何在CDO / CDONTS中指定用户和密码的例子吗? />
我无法将其配置为无需身份验证即可发送。
TIA
/ Lasse
>
" Lasse Edsvik" < LA *** @ nospam.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP10.phx.gbl ...Hello
我有一个邮件服务器需要Windows身份验证才能发送
的电子邮件。
你们能告诉我一个如何在
CDO / CDONTS中指定用户和密码的例子吗?
我无法将其配置为无需身份验证即可发送。
下面的内容应该有效。
请注意,CDO是Outlook Express的-backbone-组件和
Exchange(服务器端)。因此,如果Outlook Express
支持的任何邮件功能,可由您编程。
以下代码未经测试但应该正常工作。 />
设置myCDO = CreateObject(" CDO.Configuration")
with cdoConfig.fields
.item(" http:/ /schemas.microsoft.com/cdo/configuration/sendusing").value =
2
..item(" http:// schemas。 microsoft.com/cdo/configuration/smtpserver").value =
" 192.168.0.7"
..item(" http:/ /schemas.microsoft.com/cdo/configuration/smtpauthenticate").val
ue = 1''使用明文身份验证
..item(" ; http://schemas.microsoft.com/cdo/configuration/sendpassword")。value =
" mypassword"
..item(" ; http://schemas.microsoft.com/cdo/configuration/sendusername")。value =
" yourusername"
.update
结束
-
兼容的web farm Asp和Asp.Net的会话替换
http://www.nieropwebconsult.nl/asp_session_manager.htm
TIA
/ Lasse
" Aaron Bertrand - MVP" < AA *** @ TRASHaspfaq.com>在留言中写道
新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...我不知道我认为CDO.Message支持这一点。
ASPEmail的商业版本> ( http://www.aspemail.com/ )
CDO也是如此:)
-
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
Hello
I have a mailserver that requires windows authentication for sending email.
could you guys show me an example of how to specify user and password in
CDO/CDONTS?
i cant configure it to send with no authentication.
TIA
/Lasse
解决方案
I don''t think CDO.Message supports that. The commercial version of ASPEmail
does (http://www.aspemail.com/)
--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Lasse Edsvik" <la***@nospam.com> wrote in message
news:#3**************@TK2MSFTNGP10.phx.gbl...Hello
I have a mailserver that requires windows authentication for sending email.
could you guys show me an example of how to specify user and password in
CDO/CDONTS?
i cant configure it to send with no authentication.
TIA
/Lasse
"Lasse Edsvik" <la***@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...Hello
I have a mailserver that requires windows authentication for sending email.
could you guys show me an example of how to specify user and password in
CDO/CDONTS?
i cant configure it to send with no authentication. Something like below should work.
Note that CDO is the -backbone- component for Outlook express and for
Exchange (serverside). So, if any mail feature that Outlook Express
supports, can be programmed by you.
code below is non-tested but should be working.
Set myCDO = CreateObject("CDO.Configuration")
with cdoConfig.fields
.item("http://schemas.microsoft.com/cdo/configuration/sendusing").value =
2
..item("http://schemas.microsoft.com/cdo/configuration/smtpserver").value =
"192.168.0.7"
..item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate").val
ue = 1 '' use clear text authenticate
..item("http://schemas.microsoft.com/cdo/configuration/sendpassword").value =
"mypassword"
..item("http://schemas.microsoft.com/cdo/configuration/sendusername").value =
"yourusername"
.update
End With
--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm
TIA
/Lasse
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...I don''t think CDO.Message supports that.
The commercial version of ASPEmail > does (http://www.aspemail.com/)
CDO does as well :)
--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
这篇关于在CDO / CDONTS中指定user + pwd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文