Why does CDO.Message give me 80040222 errors?
If you're using IIS 6.0, search %WINDIR%\system32\inetsrv\MetaBase.XML for the following line:
Verify that the path exists, and has appropriate permissions. Alter the value if it is not set correctly.
On previous versions of IIS, the pickup directory is usually c:\inetpub\mailroot\pickup -- so make sure that this path exists and has appropriate permissions.
If you are trying to send SMTP mail through exchange, make sure you set the cdoSendUsing property to cdoSendUsingExchange (3). Otherwise, the SMTP service might be expecting a local pickup directory which has never been configured.
Also see this document for some further information about security settings in Windows 2000 SP3 and greater, and potential workarounds.
If all else fails, try re-installing the SMTP service.
Related ArticlesCan I get CDO messages to return a read receipt?
Can I use a remote SMTP server with CDONTS.NewMail?
How do I alter the priority / importance of an e-mail message?
How do I prevent my links from wrapping in an e-mail?
How do I put carriage returns into an e-mail?
How do I send e-mail from ASP?
How do I send e-mail from SQL Server?
How do I send e-mail in HTML format?
How do I send e-mail with CDO?
How do I validate an e-mail address?
Should I use form action=mailto: to mail the results of a form?
Where can I get more details about configuring / using CDO?
Why can't ASP handle 80,000 e-mails?
Why do CDONTS messages end up in the badmail folder?
Why do I get 8000900F errors?
Why do I get 80040108 errors?
Why do I get 8004020A errors?
Why do I get 80090020 errors?
Why do I get C00402CE / C00402C7 errors?
Why does CDO.Message give 800C000D errors?
Why does CDO.Message give me 8004020F errors?
Why does CDO.Message give me 80040213 errors?
Why does my CDONTS mail hang out in the queue or pickup folders?
Why is e-mail to certain domains being rejected?