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:
CDOSYS (0x80040211) when username and password are used
- Article ID:
22 - Date Created
Tuesday, October 5, 2010 - Last Updated
Tuesday, October 5, 2010 - This Article Has been Viewed
3379 times - Short Desc
When using the CDOSYS component to send email through your site, make sure that your username and password are accurate - Details
When your hosting provider sets the email server to authenticate, you will have to set the username and password in your code.
Make sure that you provide the correct credentials for your cdosys script to work properly - Recreate Issue
If you provide incorrect credentials for the account, this error will happen
<%
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="webmaster@domain.com"
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="wRoNgPaSsWoRd"
%>
As you can see above, the sendpassword="" is wrong. This will cause the error to happen. - Resolve Issue
Make sure that you have the correct credentials for your account in order for this to work.
sendusername (Email address)
sendpassword (Password)
<%
Set myMail = CreateObject("CDO.Message")
'This section provides the configuration information for the remote SMTP server.
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="smtp.domain.com"
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False)
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
' If your server requires outgoing authentication uncomment the lines bleow and use a valid email address and password.
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="webmaster@domain.com"
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="12345678"
myMail.Configuration.Fields.Update
myMail.To = "someone@domain.com"
myMail.Subject = "This is my subject"
myMail.From = "webmaster@domain.com"
myMail.HTMLBody = "This is a message to you about something that you requested!"
myMail.Send
%>
Share With Friends (Updated 6-8-2010)
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