• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 324
  • Last Modified:

Trying to Send Email with Classic ASP

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
nickgross19
Asked:
nickgross19
  • 3
  • 2
1 Solution
 
Wayne BarronCommented:
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
 
nickgross19Author Commented:
Tried method 3 and got this error:

error '8004020f'

any other suggestions?
0
 
nickgross19Author Commented:
oh i made a mistake using the code, i forgot to set a property.  This worked, thanks.
0
Technology Partners: 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!

 
nickgross19Author Commented:
thanks for the site.
0
 
pateljituCommented:
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
 
Wayne BarronCommented:
Glad to help.
Happy Coding.
Carrzkiss
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now