Email Host Setup
Have C1 CMS send emails for you
If you use functions of various packages that require sending email (e.g. email notifications in Composite.Forms.Renderer, you should provide C1 CMS with a way to deliver emails. You should configure this by adding a /configuration/system.net/mailSettings
section to the ~/web.config file
.
If your CMS site is hosted in a managed server environment, you should contact your hosting provider for details about accessing their SMTP services.
To use the local CMS Server as an SMTP server, add the following /configuration/system.net/mailSettings
:
<configuration> <!-- … other web.config elements … --> <system.net> <mailSettings> <smtp deliveryMethod="Network"> <network host="localhost" port="25" defaultCredentials="true" /> </smtp> </mailSettings> </system.net> <!-- … other web.config elements … --> </configuration>
To use a remote SMTP server that does not require authentication, use the following configuration (specifying the host name or IP address to use):
<configuration> <!-- … other web.config elements … --> <system.net> <mailSettings> <smtp deliveryMethod="Network"> <network host="yoursmtpserver.com" port="25" defaultCredentials="true" /> </smtp> </mailSettings> </system.net> <!-- … other web.config elements … --> </configuration>
To use an SMTP server which require authentication, you can use this as a template configuration:
<configuration> <!-- … other web.config elements … --> <system.net> <mailSettings> <smtp deliveryMethod="Network"> <network host="yoursmtpserver.com" port="25" defaultCredentials="false" userName="login" password="password" /> </smtp> </mailSettings> </system.net> <!-- … other web.config elements … --> </configuration>
If the Microsoft IIS SMTP Service is installed on the C1 CMS server, e-mails can be “sent” by writing them to the Pickup Directory. This is probably the most robust method of delivery since the SMTP Service is not required to be running while the e-mail is generated. To use this feature, use the following configuration:
<configuration> <!-- … other web.config elements … --> <system.net> <mailSettings> <smtp deliveryMethod="PickupDirectoryFromIis" /> </mailSettings> </system.net> <!-- … other web.config elements … --> </configuration>
The sample configurations above are typical settings, but they are not exhaustive. Please refer to http://msdn.microsoft.com/en-us/library/w355a94k(VS.80).aspx for more information on the <mailSettings />
element.