| How To Setup Email Using Microsoft SQL Server
   This topic discusses setting up Microsoft SQL Server to act as an  Email Server.
 
 You must have SQL Server 2019 Standard edition or higher installed. Email Setup  Most email providers are now requiring Two-Factor authentication to secure email  accounts.
  In order to send emails, this needs to be bypassed.
   If your email has multi-factor authentication enabled, sign in and setup an Application
  Password. Please refer to your email provider's documentation.
  
 SQL Server Setup  The below script needs to be run in SQL Server Management Studio.
 EXEC Sp_configure 'show advanced options', 1
GO
RECONFIGURE
GO
EXEC Sp_configure 'Database Mail XPs', 1
GO
RECONFIGURE
GO
EXEC Sp_configure 'show advanced options', 0
GO
RECONFIGURE
GO
   
    Sign in to Management Studio with administrative rights.Open a new query window.Copy and paste the above code into the query window.Execute the query.  
 Operator Configuration  There are 2 parts to setting up an  Operator:
    
    Enabling SQL email on the  Operator Email tab.Inputting the Operator's email settings.    Operator Email Tab   
    Sign into Collect!.Navigate to System -> Rights -> Active Operators. Find the applicable operators to enable emailing.Open the operator profile and navigate to the Email tab.Select SQL in the Email Type field.Click OK and repeat for any other operators. 
 Leave the Email Server IP field blank as it has no effect on the SQL email type.    Operator Email Configuration   
    Sign into Collect!.Navigate to the  Work in Progress.If you are setting up the settings for another Operator, select the Operator from the
        Load  Contacts for Operator field.Click the Configure Email button.Fill in the email settings.
        
          Email ServerEmail Server PortIs SSL encryption needed to communicate with the email server.UsernamePassword  
 Delete Email Configuration  Deleting email configuration is done automatically when you reconfigure and Operator. If you want
  to delete the configuration without recreating any, follow the steps below.
    
    Sign into Collect!.Navigate to the  Work in Progress.If you are deleting the settings for another Operator, select the Operator from the
        Load Contacts for Operator field.Click the Delete Email Settings button.  
 Troubleshooting  .NET Framework 4.5.2 or higher must be installed.
   This only works with SQL Server Standard or higher. Emailing is not avaiable in SQL Express.
   Check your email provider to see if you need an Application Password.
   Check your email provider to see if SSL encryption is needed.
  
 | 
Was this page helpful? Do you have any comments on this document? Can we make it better? If so how may we improve this page.
Please click this link to send us your comments: helpinfo@collect.org