Configuring OrderCentral Emails .NET 1.1


This article is details configuring OrderCentral ASP.NET v1.1.
Email functionality is primarily handled by our ctEmail web service (ctEmail/web.config).  There are however, two additional keys to be set in the OrderCentral/web.config file.

The following keys need to be configured in ctEmail:
<appSettings>

<!--SMTPSERVER: This is the computername, web address or ip address of the smtp mail server to use-->
<
add key="SMTPSERVER" value="smtp.mydomain.com"/>

<!--SMTPUSERNAME: Optional, this is the username that the application should login to the smtp server. Only required if smtp server requires authentication. Note: recommended but not required-->
<
add key="SMTPUSERNAME" value="mysmtpusername"/>

<!--SMTPPASSWORD: Optional, password to use with the SMTPUSERNAME value if required-->
<
add key="SMTPPASSWORD" value="mypassword"/>

<!--debugMode: Default: false. Turns on error logging in the appliction for diagnostic purposes. Should be false unless actively being used-->
<add key="debugMode" value="FALSE"/>

<!--errorLogFile: Full path to a writeable file for loging debugMode output. Only used when debugMode = TRUE. Note use of double-blackslashes\\-->
<
add key="errorLogFile" value="c:\\inetpub\\errorLogs\\ctEmailErrorLog.txt" />

<!--useOCEmailServer: Default: false. If true, the system will first serialize all emails and save to the xct_messageQueue table and send emails out later in a seperate thread.-->
<
add key="useOCEmailServer" value="TRUE"/>

<!--attachmentDirectory: Optional, Full file path to a writeable directory to use if emails send attachments such as PDF. Note: double-backslashes -->
<
add key="attachmentDirectory" value="c:\\inetpub\\ocData\\attachments\\" />

</appSettings>

The following keys need to be configured in OrderCentral/web.config
<appSettings>

<!--useOCEmailServer: TRUE/FALSE, default: FALSE; If TRUE, then OC will s�awn a seperate thread in the global application pool that will be used for sending emails -->
<
add key="useOCEmailServer" value="TRUE"/>

<!--emailQueueCycleTime: Used if useOCEmailServer is TRUE, default: 3, this is the number of minutes that the email thread willsleep before checking the queue-->
<
add key="emailQueueCycleTime" value="5"/>

</appSettings>

 

Note: For information on configuring email server settings in OrderCentral running on .NET 2 see here.