CFF KB - Carrz-Fox-Fire Promotions Knowledge Base
CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.Knowledge Base
- Breadrumbs:
CDO.Message.1 error '80040605' Unknown Error
- Article ID:
210 - Date Created
Monday, November 30, 2015 - Last Updated
Monday, November 30, 2015 - This Article Has been Viewed
2912 times - Short Desc
CDO.Message.1 error '80040605' Unknown Error occurs when the HTMLBody is the first line of the code. In earlier versions of IIS, then was possible to run, however, with IIS8 and Above, there seems to be a change, that stops this from working properly. - Details
Sometime when using CDOSYS to send email, you may run up on the following error.CDO.Message.1 error '80040605'
Unknown Error
/Contact/mail.asp, line 62[/codevalue]- Recreate Issue
To reproduce this error.<%
myMail.To = "webmaster@domain.com"
myMail.Subject = "This is your subject"
myMail.From = "Visitor@Email.com"
myMail.HTMLBody = "<strong>this is your first line here</strong>" '1st line
myMail.HTMLBody = myMail.HTMLBody &"This is your second line" '2nd line
myMail.Send[/Codewrap]
As you can see in the above code, the 1st line is causing the error.
Though we have been using the code this way for years, it seems that Microsoft has changed something, to where this will not longer function the way that it was or has in the past.- Resolve Issue
To resolve this issue:<%
myMail.To = "webmaster@domain.com"
myMail.Subject = "This is your subject"
myMail.From = "Visitor@Email.com"
myMail.TextBody = "" '1st line
myMail.HTMLBody = myMail.HTMLBody &"<strong>this is your first line here</strong>" '2nd line
myMail.HTMLBody = myMail.HTMLBody &"This is your second line" '3rd line
myMail.Send
[/Codewrap]
Looking at the 1st line now, you can see how we changed it from HTMLbody[/codesource] to TextBody[/codesource]. And we changed the original 1st line, to have the double HTMLBody, for the additional rows. This will allow the code to run properly now.
I assume that this it suppose to be, send text based emails, in case HTML Base email is not allowed or supported.Recent Articles
All Topics
- Coming Soon - Knowledge Exchange
Trending Articles
- Microsoft VBScript runtime error '800a0046' Permission denied FileSystemObject 24695
- Microsoft OLE DB Provider for SQL Server error '80040e57' String or binary data would be truncated. or The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data. 21297
- ADODB.Parameters error '800a0e7c' Parameter object is improperly defined 19544
- After Effects warning: Audio conforming failed for the following file .cfa. Perhaps due to disk space 17785
- The backup set holds a backup of a database other than the existing 16825
- Recreate Issue
Share With Friends (Updated 6-8-2010)