Solved

Trying to Send Email with Classic ASP

Posted on 2011-09-23
6
313 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to update a dummy recordset with classic ASP 4 86
Age between date range query (SP) 13 65
Error viewing ASP page 12 164
jquery to restrict certain words from input in form 11 34
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…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

773 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