Configurations to Send Emails From the Portal

The topics in this section describe the configurations that must be performed on Sitefinity for sending emails using Google or Outlook account from the Portal.

Configurations for Sending Emails from a Google Account

Prerequisite

Update the Email Settings on Sitefinity for Gmail

  1. Launch the Sitefinity URL, and navigate to Administrators > Settings to view the Basic Settings.

  2. Click Email Settings to view the Email settings page and update the field values for Gmail. For details, see the Sitefinity Documentation.

    Note: In the password field, specify the App password for the Gmail account.

Configurations for Sending Emails from a Microsoft Outlook Account

The following configurations must be performed to enable sending emails from a Microsoft Outlook account using the OAUTH2 authentication:

  1. Configure the OauthEmailSender Settings on Sitefinity

  2. Configure a Custom Profile for Sending Email Notifications

  3. Update the Default Profile With the Custom Profile Name

Prerequisite

Configure the OauthEmailSender Settings on Sitefinity

The configurations on the OauthEmailSender page on Sitefinity is used to authenticate and send emails from the outlook email account using the OAuth2 authentication protocol.

  1. Open the Sitefinity URL and go to the Advanced Settings page (under Administrations > Settings > Advanced).

  2. Click the OauthEmailSender setting to view the OauthEmailSender page.

  3. In the Authentication Flow field, select one of the following values:

    • Authorization_code - When this option is selected, the outlook API and permissions are used to authenticate and send emails from the outlook user account. The authorization code needs to be generated to complete the configuration.

    • Client credentials - When this option is selected, the Microsoft Graph API and permissions are used to authentication and send email from the outlook user account

  4. Click the Save Changes button.

Configure a Custom Profile for Sending Email Notifications

  1. Navigate to the Sitefinity Advanced Settings page.

  2. Click Notifications > Profiles.

  3. In the Profiles page, click the Create new button and select SMTPProfileSenderElements.

  4. In the Profiles page, specify the following field values:

    Note: Fields from the Profiles page that are not listed below need not be configured and can be skipped.
    1. DefaultSenderEmailAddress - Specify the sender email address.

    2. DefaultSenderName - Specify the sender name for the email.

    3. Host - Specify one of the following values depending on the type of Authentication Flow configured:

      • smtp.office365.com - For Authentication_code.

      • https://graph.microsoft.com/v1.0 - For Client credentials.

    4. Port - Specify 587.

    5. UseAuthentication - Select this check box.

    6. Username - Specify the username associated with the credentials.

    7. Password - Specify the password for the username. This field should not be blank.

    8. UseSSL - Select this check box.

    9. ProfileName - Specify a custom name for the profile.

    10. SenderType - Specify one of the following values depending on the type of Authentication Flow configured:

      1. CmcEmailSender.OAuthMailSender - For Authentication_code.

      2. CmcEmailSender.GraphApiEmailSender - For Client credentials.

    11. ProfileType - smtp

  5. Click the Save Changes button.

Update the Default Profile With the Custom Profile Name

  1. Navigate to the Sitefinity Advanced Settings page.

  2. Click Notifications > DefaultProfiles > smtp.

  3. In the smtp page, in the ProfileName field specify the custom profile name.

  4. Click the Save Changes button.

Update the Sender profile Field in the Security Notifications Settings

In the Sender profile field (under Security > Notifications settings) specify the default profile name that is configured for the SMTPProfile type in the DefaultProfiles setting.

  1. Open the Sitefinity URL and go to the Advanced Settings page (under Administrations > Settings > Advanced).

  2. Click Security > Notifications.

  3. In the Notifications page, in the Sender profile field, specify the sender profile name that is configured for the SMTP Profile type in the DefaultProfiles settings.

  4. Click the Save changes button.

Configuring Email Address for Sending Confirmation and Successful Registration Emails

To configure the sender's email address to send the confirmation and successful registration emails to portal users, the following two security parameters must be configured in the Sitefinity Advanced Settings page:

  • confirmationEmailAddress

  • successfulRegistrationEmailAddress

To configure the parameters, perform the following steps:

  1. Navigate to the Sitefinity Advanced Settings page.

  2. Click Security > Membership Providers > Default > Parameters.

  3. On the Parameters page, click Create New.

  4. Specify values in the following fields for the new parameter:

    1. In the Key field, specify confirmationEmailAddress, for sending the confirmation email.

    2. In the Value field, specify the email address that is configured in the Username field in the Email Settings page. Closed

      Sitefinity Basic Email Settings page

  5. Click the Save changes button.

  6. Repeat steps 3 to 5 to add the successfulRegistrationEmailAddress parameter.