Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 01:41 PM
Bruce W.1
Guest
 
Posts: n/a
Default Send email form problem

I'm new to ASP (but not ASP.NET) and I'm trying to setup a simple ASP
web form to send an email to me. So I try this code:
http://www.library.unr.edu/subjects/guides/mailplay.asp

I upload the web page file to my hosting company, which is running
Windows 2000, and I get this error message:

CDO.Message.1 error '80040220'
The "SendUsing" configuration value is invalid.
/mailplay.asp, line 63

FYI, line 63 is:
objMail.Send

So now I'm confused.

I assume that my hosting company has all the latest microsoft updates.
I'm not sure if it's using CDONTS, CDO, or CDOSYS. On these I'm also a
little confused.

I'd feel better if I specified the SMTP server, but I guess CDO takes
care of this right?

Can anyone tell me what's wrong here?

Thanks for your help.
  #2  
Old July 19th, 2005, 01:41 PM
Jeff Cochran
Guest
 
Posts: n/a
Default Re: Send email form problem

On Mon, 07 Jun 2004 16:08:18 -0400, "Bruce W.1" <bw@noDirectEmail.com>
wrote:
[color=blue]
>I'm new to ASP (but not ASP.NET) and I'm trying to setup a simple ASP
>web form to send an email to me. So I try this code:
> http://www.library.unr.edu/subjects/guides/mailplay.asp
>
>I upload the web page file to my hosting company, which is running
>Windows 2000, and I get this error message:
>
> CDO.Message.1 error '80040220'
> The "SendUsing" configuration value is invalid.
> /mailplay.asp, line 63
>
>FYI, line 63 is:
> objMail.Send
>
>So now I'm confused.[/color]

So are we. :)

The line in question generated the error because a previous line has
an error. Use Response.Write to write out the message parameters for
your configuration.
[color=blue]
>I assume that my hosting company has all the latest microsoft updates.[/color]

I assume that you won't have to assume if you ask.
[color=blue]
>I'm not sure if it's using CDONTS, CDO, or CDOSYS. On these I'm also a
>little confused.[/color]

The script is CDO.SYS (CDO is the same thing...). If your host isn't
using it, then neither can you. Ask them.
[color=blue]
>I'd feel better if I specified the SMTP server, but I guess CDO takes
>care of this right?[/color]

No, you need to specify the server if you're not using the default
SMTP service on the server the script runs on. Or a different method,
defined in the SendUsing field.
[color=blue]
>Can anyone tell me what's wrong here?[/color]

You didn't contact your ISP and ask them what methods they had
available to send email. :)

The SendUsing field is basically the method CDO uses to send the
message. It could be dropped in a pickup folder, the default if you
have a default SMTP server, or sent over a port number to a non-local
SMTP server, specified in the SMTPServer field.

You'll need to contact your ISP to see what they use for sending mail
from a web page, it won't do you any good to test configs until you
have theuir settings/process.

Jeff


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles