Knowledgebase
Can I Use CDOSYS Email Component with Online Contest Manager?
Posted by DMXReady-MH on 30 October 2013 10:47 PM

Q. Can I Use CDOSYS Email Component with Online Contest Manager?

A. Yes, you can use CDOSYS with Online Contest Manager by following these steps:

  1. Open the file "applications/OnlineContestManager/library/entity/registration/messaging/inc_send_email_confirmation.asp" and go to line 121
  2. Change the smtp server name from "mail.yoursmtpserver.com" to YOUR smtp server name (If you don't know your SMTP server name, contact your webhost):
    • Change from: objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.yoursmtpserver.com"
    • Change to: objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "YOUR smtp server name"
  3. Save the file and upload it to your web server.

*If you don't know your SMTP server name or have questions regarding CDOSYS, contact your webhost

Note:
If your server requires SMTP authentication, then you will need to do the following steps as well:

  1. Open "applications/OnlineContestManager/library/entity/registration/messaging/inc_send_email_confirmation.asp" go to line 123
  2. Locate the following line:
    objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
  3. Below that line, add the following codes:
    objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "myusername"
    objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "mypassword"

    * myusername = email server username from your webhosting provider
    * mypassword = email server password from your webhosting provider
    * Do not erase code: objCDOSYSCon.Fields.Update
  4. Save and upload it to your server

 

 

Special Note:
If you use 1and1 hosting service, you will also need to do the following steps:

Locate the following line in inc_send_email_confirmation.asp
Set objMailUser = Server.CreateObject("CDO.Message")
Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")
Set Flds = objCDOSYSCon.Fields

Below that, copy and paste this code:

objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "YOUR smtp Server Name"
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "myusername"
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "mypassword"
objCDOSYSCon.Fields.Update

set objMailUser.Configuration = objCDOSYSCon

 

(307 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Help Desk Software by Kayako dmxready.helpserve.com