Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - CDOSYS email probs causing Server Errors?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CDOSYS email probs causing Server Errors?

 Post Reply Post Reply
Author
JVRudnick View Drop Down
Groupie
Groupie


Joined: 06 August 2004
Location: Canada
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote JVRudnick Quote  Post ReplyReply Direct Link To This Post Topic: CDOSYS email probs causing Server Errors?
    Posted: 18 March 2006 at 9:57pm
Help here lads please...
 
when I try to add a post, I get this error...
 
error '8004020f'

/functions/functions_send_mail.asp, line 137

I get the same error trying to email too....
 
How can I fix this please...I can't be the ONLY one here whos run into this???
 
Angry
 
Jim
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 20 March 2006 at 11:01am
This means that the email settings you setup in the admin area are incorrect.

Check with your hosting company as to the correct settings and then update the email settings in the admin area.
Back to Top
JVRudnick View Drop Down
Groupie
Groupie


Joined: 06 August 2004
Location: Canada
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote JVRudnick Quote  Post ReplyReply Direct Link To This Post Posted: 20 March 2006 at 2:25pm
while I'm sure others might accept this answer, fraid I can't.
 
my email is PROPERLY setup on the server. I can send out a mass email to anyone and use the email a member functionality within the forums as per normal....ie my CDOSYS works fine!!!!
 
yet STILL, when i post, or anyone posts a new message, you get that same error message...using the Back button shows you tho that your message WAS recorded as you can see it at the bottom of that thread.
 
so....anyone else here help with what might be a very unique problem?
 
Jim
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 20 March 2006 at 2:48pm
Calm down JVRudnick, after 5 years of witting a supporting this software the answer I have given you is correct, although a bit short, but I do have allot of support question to go through, and in 99% of cases what I posted will fix the issue.

This is 100% an email issue relating to the CDOSYS email component, as when you post your message email notifications are sent out to members who subscribe to the topic and/or forum.

The following page may give a more specific reason to your issue:-

http://www.aspfaq.com/show.asp?id=2305

It could also be an issue with a malformed email address in the database, but I would first double check all your email settings are setup correctly.


Edited by -boRg- - 20 March 2006 at 2:49pm
Back to Top
JVRudnick View Drop Down
Groupie
Groupie


Joined: 06 August 2004
Location: Canada
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote JVRudnick Quote  Post ReplyReply Direct Link To This Post Posted: 20 March 2006 at 3:21pm
borg..
 
this server (and I'm the admin btw, it's a ded server) has more than 50 domains on it. many of them, use our own ASP email engine to send out email. my own CDOSYS scripting is pretty simple, but it's somewhat more complex, as we don't use the MS SMTP at all, instead we use MailEnablePRO as the SMTP.
 
that said, your OWN code, to send out the emails is where the failure happens. this can be found in the CDOSYS routine in functions_send_mail.asp. somewhere in that snippet, the failure occurs...
===================================================
'CDOSYS mail component
  Case "CDOSYS"
   'Dimension variables
   Dim objCDOSYSCon
   'Create the e-mail server object
   Set objCDOSYSMail = Server.CreateObject("CDO.Message")
       Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")
       'Set and update fields properties
       With objCDOSYSCon
           'Out going SMTP server
           .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strOutgoingMailServer
           'SMTP port
           .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")  = 25
           'CDO Port
           .Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
           'Timeout
           .Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
           .Fields.Update
          End With
    'Update the CDOSYS Configuration
    Set objCDOSYSMail.Configuration = objCDOSYSCon
   With objCDOSYSMail
    'Who the e-mail is from
    .From = strFromEmailName & " <" & strFromEmailAddress & ">"
    'Who the e-mail is sent to
    .To = strRecipientName & " <" & strRecipientEmailAddress & ">"
    'The subject of the e-mail
    .Subject = strSubject
    'Set the e-mail body format (HTMLBody=HTML TextBody=Plain)
    If blnHTML = True Then
      .HTMLBody = strEmailBodyMessage & strEmailBodyAppendMessage
    Else
     .TextBody = strEmailBodyMessage & strEmailBodyAppendMessage
    End If
    'Send the e-mail
    If NOT strOutgoingMailServer = "" Then .Send
   End with
   'Close the server mail object
   Set objCDOSYSMail = Nothing
===============================================
I've colored the line that the code failure occurs on....as you can see, the test is for this "strOutgoingMailServer" var from the green colored line above.
 
Somehow the prob tho of WHY that var is not capable of being tested, is beyond me. I've done many changes to your code and tried to sub in other vars that make CDOSYS run on this server for my own clients....and still NADA....
 
Can you help here? Your link to the aspfaq site is nice, but no where there does the problem of mine seem to be addressed...
 
???

Jim
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 20 March 2006 at 3:37pm
I use MailEnablePRO myself, so know that Web Wiz Forums will run with it.

Version 7.97 does support using a 'localhost' mail sever, and version 8 also supports authentication.

If you are not running the latest version then try installing 7.97 and using a 'localhost' email server to see if that solves the issue.

Also, if you can wait until version 8 RC1 is released tomorrow, that also has the CDOSYS mail function re-written and it may also solve your problem.

The line that the error occurs on is the line that sends the email, but this does not mean the error is on that line, instead the error could be with any part of the CDOSYS setup.


Back to Top
JVRudnick View Drop Down
Groupie
Groupie


Joined: 06 August 2004
Location: Canada
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote JVRudnick Quote  Post ReplyReply Direct Link To This Post Posted: 20 March 2006 at 3:42pm
um...never "upgraded" one of these forums before...is there an URL that explains how to do that? plus, what about the "changes" that I've made to the various colors, cols etc. Sorry, but never done this before....
 
???

Jim
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 20 March 2006 at 3:53pm
To upgrade between 7.x versions just replace the ASP files with the ones from the new version, backup your database first just incase you accidentally overwrite it.

There is a version history file that lists the changed files, so you should be able to check if your modified files have been changed.

Upgrading to version 8 will be much the same process, but there will also be an upgrade tool for upgrading the database to the new version 8 database.

Upgrades are free and for security reasons you should always make sure you are using the latest version.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.