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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
oh i made a mistake using the code, i forgot to set a property. This worked, thanks.
ASKER
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
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
Happy Coding.
Carrzkiss
ASKER
error '8004020f'
any other suggestions?