Link to home
Start Free TrialLog in
Avatar of nickgross19
nickgross19

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of Wayne Barron
Wayne Barron
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nickgross19
nickgross19

ASKER

Tried method 3 and got this error:

error '8004020f'

any other suggestions?
oh i made a mistake using the code, i forgot to set a property.  This worked, thanks.
thanks for the site.
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
Glad to help.
Happy Coding.
Carrzkiss