Print Page | Close Window

CDOSYS - Cannot get it to work

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=18223
Printed Date: 13 April 2026 at 10:23am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: CDOSYS - Cannot get it to work
Posted By: chris.felstead
Subject: CDOSYS - Cannot get it to work
Date Posted: 01 February 2006 at 10:43am
Hi All,

I have set my mail server to localhost and the component to CDOSYS. However, when the forum sends email I get:

error '8004020f'
/forums/admin/functions/functions_send_mail.asp, line 137

I have tried adding my administrator level username and password to the script and I still get the error.

Please help.



Replies:
Posted By: WebWiz-Bruce
Date Posted: 01 February 2006 at 12:57pm
There shouldn't be anything except a comment on line 137, make sure you are running an unmodified version of the lastest version.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: chris.felstead
Date Posted: 01 February 2006 at 12:59pm
It's unmodified and the latest. Just downloaded it.

I'm running the SQL 2000 version. The error is coming up when I am sending the email through the admin section to test. You know, the send to all users bit.

Chris


Posted By: WebWiz-Bruce
Date Posted: 01 February 2006 at 1:21pm
The admin section email tool has a few issues with the current version and doesn't work how it should.

Try sending emails from teh main forum.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: chris.felstead
Date Posted: 03 February 2006 at 9:09am
Didn't work but I figured out the problem. The SMTP server was rejecting the connection. I've setup the SMTP to accept connections and relay. All working now. Thanks.


Posted By: Kann
Date Posted: 10 February 2006 at 6:18am
How did you get it to work? I have the same issue.


Posted By: wmeyers
Date Posted: 11 February 2006 at 5:43pm
My host requires "pop before smtp" meaning that outbound smtp messages must have authentication or they will be rejected. This should become the norm since spammers like to use unprotected smtp servers to blast spam to the internet.
 
Since there is no field in the e-mail admin to address this that I could see - I'm a newbie, remember, be kind! I added the following to functions_send_mail.asp:
 
'Your UserID on the SMTP server
     .Fields(" http://schemas.microsoft.com/cdo/configuration/sendusername - http://schemas.microsoft.com/cdo/configuration/sendusername ") = "my smtp login"
     'Your password on the SMTP server
     .Fields(" http://schemas.microsoft.com/cdo/configuration/sendpassword - http://schemas.microsoft.com/cdo/configuration/sendpassword ") = "my smtp password"
     'Type of authentication, NONE, Basic (Base64 encoded), NTLM
     .Fields(" http://schemas.microsoft.com/cdo/configuration/smtpauthenticate - http://schemas.microsoft.com/cdo/configuration/smtpauthenticate ") = 1
 
and after this I was able to send e-mails without error. Of course substitute your own smtp login information for the dummy names I put in.
 
Hope this helps.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net