# Set up Gmail as mail server in OpManager OpManager allows you to configure Gmail as the SMTP server to [send alert notifications](https://www.manageengine.com/network-monitoring/help/email-alerts.html), [scheduled reports](https://www.manageengine.com/network-monitoring/help/schedule-reports.html) and more. **Important Note:** Prior to mail server configuration, go through [this mandatory check list](https://www.manageengine.com/network-monitoring/kb/Mail-Server-troubleshooting.html) to avoid connection issues. To set it up as your mail server, follow the simple steps below. Step 1: Go to **Settings** tab. Step 2: Select **Basic Settings → Mail server settings** in the left pane. Step 3: It is recommended to use Gmail SMTP server settings and not use IMAP or POP configurations. Step 4: Enter **smtp.gmail.com** as the Server Name and the Port number as **465 [SSL]** or **587 [TLS]**. Enter **Timeout** in the range of **60-300 (sec)**. Step 5: In the **From Email ID field**, enter the Gmail address from which the mail should be sent. Step 6: In the **To Email ID field**, enter the receiver's email address. If you want to enter multiple email addresses, separate them using comma. Step 7: In Authentication Details, provide the **Gmail credentials** of the email that was entered in the **From Email ID** field. - **User Name**: Enter your Gmail user name. - **Password**: Enter Gmail's App-Specific Password Step 8: Select **SSL/TLS** in Secure Connection Details. Step 9: Send Test Mail to check the configuration. Step 10: Click **Save**. **Note:** If 2-step authentication has been enabled in your Gmail account, you will require an app-specific password to receive email alerts from OpManager. ## App-Specifc Password: An App-Specific Password provides a 16-digit passcode, which allows a device or an application to access your Google Account. To obtain the 16 digit code, follow the steps mentioned below. 1. Sign-in to your GMail account from your web browser. 2. TURN OFF **Less secure apps** access from [this](https://myaccount.google.com/lesssecureapps?pli=1) link. - TURN ON 2-Step Verification by clicking on [this](https://myaccount.google.com/signinoptions/two-step-verification/enroll-welcome) link. - Create an App-Password: a. Go to your [Google account](https://myaccount.google.com/). b. Search for **App Passwords** and select **App Passwords** under the Security tag. c. At the bottom, choose **Select app -> Other (Custom name)** and enter any name of your choice. d. Click the **Generate** button. e. A 16 digit app password unique to your device is generated. (This code can be regenerated) ![To set up Gmail as mail server in OpManager: Select 'other (custom name)' option under App passwords in Gmail](https://www.manageengine.com/network-monitoring/how-to/images/configure-gmail.png) ![To set up Gmail as mail server in OpManager: Select app for password generation - OpManager](https://www.manageengine.com/network-monitoring/how-to/images/configure-gmail2.png) ![To set up Gmail as mail server in OpManager: 16 digit code generated](https://www.manageengine.com/network-monitoring/images/configure-gmail1.png) 3. Copy this 16 digit code and paste it in the **Password** field of OpManager Mail Server Settings. ## Allow less secure apps If you are unable to perform the two-step verification, follow this alternate option. - After signing into your Gmail, go to [this](https://myaccount.google.com/lesssecureapps) link and make sure **Less Secure Apps** is TURNED ON. - You can now enter your **Gmail password** in OpManager Mail Server Settings instead of the 16 digit code. Click **Save**.