Question:
I'm getting Could not access
'CDO.Message' object error when email to user or admin is sent.
Answer:
This error message is quite generic. Here are some suggestions on
fixing this:
Suggestion 1
Specify a valid SMTP server in ASPRunner. If that property is not
set, at least set it to 127.0.0.1 or to localhost.
Suggestion 2
If you are using "localhost" or "127.0.0.1" as
SMTP server, you may not have permissions to relay through the IIS
SMTP Service. To allow access, open up the IIS Admin MMC. Locate the
SMTP Virtual Server, and right-click, then select Properties. On the
Access tab, click the Relay button. In the Relay Restrictions dialog,
grant your IP address (127.0.0.1) to the Computers listbox. Close
down all dialogs, and restart the SMTP Service.
Suggestion 3
If you are using "localhost" or "127.0.0.1" as
the SMTP server, make sure Anonymous access is allowed. To allow
access, open up the IIS Admin MMC. Locate the SMTP Virtual Server,
and right-click, then select Properties. On the Access tab, click the
Authentication button. Be sure "Anonymous Access" is the
only checkbox checked. Close down all dialogs, and restart the SMTP Service.
Suggestion 4
The email address does not have a valid TO address. No spaces in
email address.
Suggestion 5
Use a real FROM address that exists on the SmtpMail.SmtpServer. Do
not use something like "asdf@asdf.com", or some other bogus
address as your FROM. Some mail servers will catch this, and will
deny relaying.
|