This project has moved. For the latest updates, please go here.

Basic Configuration Setup

<configuration>
<configSections>
<section name="EmailNotificationSettings" type="EmailNotification.Config.EmailNotificationConfigurationSectionHandler, EmailNotification" allowLocation="false" allowDefinition="Everywhere"/>
</configSections>
<EmailNotificationSettings isEnabled="true">
<ServerSettings smtpServer="smtp.gmail.com" isSSLEnabled="true" smtpServerConnectionLimit="4" smtpServerPassword="password"
smtpServerUser="test@gmail.com" smtpServerRequiredLogin="true"/>
<DefaultFrom emailAddress="store@gmail.com" displayName="Store"></DefaultFrom>
<TestEmailAccounts isTestEmailAccountsBlocked="true">
<add account="mailinator.com"></add>
</TestEmailAccounts>
</EmailNotificationSettings>
</configuration>

Definitions

Key Options Description
isEnabled true/false Turn email notifications on/off
     
Server Settings    
smtpServer   The name or IP address of the host used for SMTP transactions.
smtpServerPort 25 The port used for SMTP transactions.
isSSLEnabled false Specify whether the SmtpClient uses Secure Sockets Layer (SSL) to encrypt the connection.
smtpServerConnectionLimit no max The maximum amount of emails to send every 15 seconds.
smtpServerUser   The user used for authenticating SMTP transactions.
smtpServerPassword   The password used for authenticating SMTP transactions.
smtpServerRequiredLogin false Specify whether the SmtpClient requires a login when connection is established.
useDefaultCredentials   A Boolean value that controls whether the DefaultCredentials are sent with requests.
timeout   A value that specifies the amount of time after which a synchronous Send call times out.
     
DefaultFrom    
emailAddress   The default <from> email address used when sending emails.
displayName   The default <from> display name used when sending emails.
     
TestEmailAccounts    
isTestEmailAccountsBlocked false Specify whether emails for defined accounts are ignored when the service sends emails.
account   A email address that will be ignored when sending emails.

Last edited Aug 14, 2012 at 7:26 PM by mjourdan, version 6

Comments

No comments yet.