Solved

Trying to Send Email with Classic ASP

Posted on 2011-09-23
6
311 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now