Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Trying to Send Email with Classic ASP

Posted on 2011-09-23
6
317 Views
Last Modified: 2012-05-12
Set myMail=CreateObject("CDO.Message")
	myMail.Subject="A Subject"
	myMail.From="email address"
	myMail.To= "email address"
	myMail.HTMLBody = "<h2>Some Text</h2>"
	myMail.Send
	set myMail=nothing

Open in new window


I try using the above code to send an email, but the page generates this errror:
CDO.Message.1 error '80040220'

The "SendUsing" configuration value is invalid.


Can anyone tell me how to fix this?
0
Comment
Question by:nickgross19
  • 3
  • 2
6 Comments
 
LVL 30

Accepted Solution

by:
Wayne Barron earned 500 total points
ID: 36589563
Is this the entire code?
Method 3 is what I use.
http://www.powerasp.com/content/new/sending_email_cdosys.asp

Give it a shot and see if it will correct your issue.

Carrzkiss
0
 

Author Comment

by:nickgross19
ID: 36589669
Tried method 3 and got this error:

error '8004020f'

any other suggestions?
0
 

Author Comment

by:nickgross19
ID: 36589752
oh i made a mistake using the code, i forgot to set a property.  This worked, thanks.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Closing Comment

by:nickgross19
ID: 36589755
thanks for the site.
0
 
LVL 15

Expert Comment

by:pateljitu
ID: 36589801
Please take a look at these articles:

CDO.Message.1 error '80040220':
http://forums.iis.net/t/1146477.aspx

error '8004020f':
http://classicasp.aspfaq.com/email/why-does-cdo-message-give-me-8004020f-errors.html
0
 
LVL 30

Expert Comment

by:Wayne Barron
ID: 36589835
Glad to help.
Happy Coding.
Carrzkiss
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question