send mail

send mail

am 15.01.2006 05:21:02 von Souris

<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.TextBody="This is a message."
myMail.Send
set myMail=nothing
%>

I use above code to send mail, but I got Error Type:
CDO.Message.1 (0x80040220)
The "SendUsing" configuration value is invalid.

What am I missing here?

Thanks milions,

Re: send mail

am 15.01.2006 14:18:37 von reb01501

Souris wrote:
> <%
> Set myMail=CreateObject("CDO.Message")
> myMail.Subject="Sending email with CDO"
> myMail.From="mymail@mydomain.com"
> myMail.To="someone@somedomain.com"
> myMail.TextBody="This is a message."
> myMail.Send
> set myMail=nothing
> %>
>
> I use above code to send mail, but I got Error Type:
> CDO.Message.1 (0x80040220)
> The "SendUsing" configuration value is invalid.
>
> What am I missing here?
>
http://www.aspfaq.com/show.asp?id=2026

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"