Feedback
Did this article resolve your question/issue?

   

Article

How to use smtp4dev to test Sitefinity emails

« Go Back

Information

 
TitleHow to use smtp4dev to test Sitefinity emails
URL NameHow-to-use-smtp4dev-to-test-Sitefinity-emails
Article Number000136135
EnvironmentProduct: Sitefinity
Version: 6.x, 7.x, 8.x, 9.x, 10.x, 11.x, 12.x
OS: All supported OS versions
Database: All supported Microsoft SQL Server versions
Question/Problem Description
How to use smtp4dev to test Sitefinity emails?
How to test emails sent by Sitefinity?
How to test if the problem with sending emails is caused by Sitefinity or the SMTP server that is being used?
 
Steps to Reproduce
Clarifying Information
Error Message
Defect/Enhancement Number
Cause
Resolution
Configuring smtp4dev:
1. Download the smtp4dev (dummy SMTP server), from Github, rnwood/smtp4dev https://github.com/rnwood/smtp4dev,
2. Follow the steps under "How to run smtp4dev by downloading from github releases" https://github.com/rnwood/smtp4dev#how-to-run-smtp4dev-by-downloading-from-github-releases

Configuring Sitefinity:
1. Configure SMTP Settings
    1.1 Go to Administration > Settings > Advanced > System > SMTP (Email Settings) and fill out the needed information in this configuration in accordance with your SMTP server, then save changes.
    1.2 Populate the Host with localhost or 127.0.0.1, Port = 26 and DefaultSenderEmailAddress fields. Populate other fields, if necessary.
    1.3 Save the changes
Note: When missing data in the fields in 1.2 an error is thrown during the tests (DefaultSenderEmailAddress property cannot be empty)

2. Configure notification settings
    2.1 Go to Administration > Settings > Advanced > Notifications > Profiles > ProfileName (Ex. Default)
    2.2 Populate the Host with localhost or 127.0.0.1, Port = 26 and DefaultSenderEmailAddress fields. Populate other fields, if necessary.
    2.3 Save the changes

- To test emails sent from the Forms Module:

3. Enable Forms notifications
    3.1 Go to Administration > Settings > Advanced > Forms > Notifications
    3.2 Click the "Enabled" checkbox.
    3.3 Set the sender profile to ProfileName (Ex. Default).
    3.4 Save the changes.

- To test emails sent from the Password Reset functionality:

Configure the password recovery link. For reference, follow Sitefinity documentation (see notes).

4. Restart the application

Testing the SMTP settings:
1. Go to Administration > Settings > Global settings (if in multisite mode) > Email Campaigns 
2. On the page that loads:
3. Select email service - Default 
4. Notifications SMTP Profile - Default 
5. Email - any email address
6. Click Send check email.

 
Workaround
Notes
References to Other Documentation:
- Sitefinity Documentation, Configure SMTP Settings https://www.progress.com/documentation/sitefinity-cms/administration-configure-smtp-settings
- Sitefinity Documentation, Configure Notification Profiles Settings https://www.progress.com/documentation/sitefinity-cms/administration-configure-notification-profiles
- Sitefinity Documentation, Configure The Password Recovery Link https://www.progress.com/documentation/sitefinity-cms/administration-configure-the-password-recovery-link
Last Modified Date10/16/2019 10:58 AM
Attachment 
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.