Solved

Trying to Send Email with Classic ASP

Posted on 2011-09-23
6
318 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 31

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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 31

Expert Comment

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
File download script VBSCRIPT fail on download PPT files 2 68
Html Table looping 4 32
ASP AND XML 3 30
Validating number not work with decimal 4 23
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 informatio…
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 video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

713 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