Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: ASP-ADO


Message #1 by "eddy chan" <cmkatt@h...> on Sat, 15 Jun 2002 12:29:10 +0800
i'm having the error message like this

    CDO.Message.1 (0x80040220)
    The "SendUsing" configuration value is invalid

and my code is only
<%
Set smtp = Server.CreateObject("CDO.Message")
smtp.From = "myname@m..."
smtp.To = "name@h..."
smtp.Subject = "testing"
smtp.TextBody = "Text Body of your message"
smtp.Send()
Set smtp = nothing
%>

my web server in on w2000 and the smtp server is on another
linux server.

what goes wrong?

what is 'sendusing' configuration and how to configure?

thanks,
tom

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

Message #2 by "Tomm Matthis" <tmatthis@c...> on Sat, 15 Jun 2002 08:30:52 -0400
try using smtp.send ... instead of smtp.send()

-- Tomm

> -----Original Message-----
> From: eddy chan [mailto:cmkatt@h...]
> Sent: Saturday, June 15, 2002 12:29 AM
> To: ASP CDO
> Subject: [asp_cdo] ASP-ADO
> 
> 
> i'm having the error message like this
> 
>     CDO.Message.1 (0x80040220)
>     The "SendUsing" configuration value is invalid
> 
> and my code is only
> <%
> Set smtp = Server.CreateObject("CDO.Message")
> smtp.From = "myname@m..."
> smtp.To = "name@h..."
> smtp.Subject = "testing"
> smtp.TextBody = "Text Body of your message"
> smtp.Send()
> Set smtp = nothing
> %>
> 
> my web server in on w2000 and the smtp server is on another
> linux server.
> 
> what goes wrong?
> 
> what is 'sendusing' configuration and how to configure?
> 
> thanks,
> tom
> 
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos: 
> http://photos.msn.com/support/worldwide.aspx
> 
> 
> 

Message #3 by "Siegfried Weber" <sweber@c...> on Sat, 15 Jun 2002 20:34:56 +0200
Here's a re-post from the archives (last time posted on March 2002):

<quote>
I think I mentioned (and it should be in the archives of this list) that
a CDO.Configuration is also necessary. This configuration object holds
all settings to submit the message.

Here's it again:

Set objConfiguration =3D CreateObject("CDO.Configuration")
Set objFields =3D objConfiguration.Fields
With objFields
       .Item(cdoSendUsingMethod) =3D cdoSendUsingPort
       .Item(cdoSMTPServerPort) =3D 25
       .Item(cdoSMTPServer) =3D "myservername.mydomain.com"
       .Update
End With

Set objMessage =3D CreateObject("CDO.Message")
With objMessage
       Set .Configuration =3D objConfiguration
       .From =3D "me@m..."
       .To =3D "vahnid@h..."
       .Subject =3D "Here comes a Subject"
       .TextBody =3D "Here is a text body"
       .Send
End With
</quote>

You might want to check the archive for more information.

<Cheers:Siegfried runat=3D"server" />

> -----Original Message-----
> From: eddy chan [mailto:cmkatt@h...]
> Sent: Saturday, June 15, 2002 6:29 AM
> To: ASP CDO
> Subject: [asp_cdo] ASP-ADO
>
> i'm having the error message like this
>
>     CDO.Message.1 (0x80040220)
>     The "SendUsing" configuration value is invalid
>
> and my code is only
> <%
> Set smtp =3D Server.CreateObject("CDO.Message")
> smtp.From =3D "myname@m..."
> smtp.To =3D "name@h..."
> smtp.Subject =3D "testing"
> smtp.TextBody =3D "Text Body of your message"
> smtp.Send()
> Set smtp =3D nothing
> %>
>
> my web server in on w2000 and the smtp server is on another
> linux server.
>
> what goes wrong?
>
> what is 'sendusing' configuration and how to configure?
>
> thanks,
> tom
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>

  Return to Index