MIDAS Knowledge Base MIDAS Knowledge Base

How to configure MIDAS to send email via Gmail SMTP servers

MIDAS can be configured to send email via an external SMTP server/relay. This article outlines how to configure MIDAS to send email via Google's SMTP servers (a valid Gmail account is required).

The email settings within MIDAS may be accessed via MIDAS Admin Options → Manage MIDAS → Email.

In order to send mail from your MIDAS system via your Gmail account, enter the following settings:

MIDAS Gmail SMTP Server Settings

Replace "" with your actual Gmail email address, and specify the corresponding password. Also, ensure that the "SSL?" option is selected.

Click "SMTP Test" to test the settings you've entered. If all goes well, you'll see a confirmation that a test email was successfully sent.

If, however, you see an error message along the lines of "Error: 530 5.5.1 Authentication Required. Learn more at https://support.google.com/mail/answer/14257" ...then assuming the credentials you entered were correct, then this error is most likely a result of Google blocking external access to your Google/Gmail account from an unknown location/app (i.e. the server where your MIDAS system resides).

To resolve, simply point your browser to https://accounts.google.com/DisplayUnlockCaptcha (or if you use Gmail through your work, school, or other organization, https://www.google.com/a/yourdomain.com/UnlockCaptcha where yourdomain.com is your domain name) and click "Continue":

Allow external access to Gmail

This will grant access for 10 minutes for registering new apps/devices:

Allow external connections to Gmail

Back in MIDAS, click the "SMTP Test" button again. If all goes well, you should then see a confirmation that a test email was successfully sent.

If you're still seeing an authentication error, there's one more setting within your Google Account you can check/change. Whilst logged in to your Google/Gmail account in your browser, go to My Account → Sign-in & security, and enable the "Allow less secure apps" option.

If you're then still unable to authenticate to Gmail's SMTP servers from within MIDAS, please see Gmail's Help article: Can't sign in to my email app

Please Note: Google do not permit dynamically altering of the "sender" of emails sent through their Gmail SMTP servers. Any email sent this way will always appear sent from the name/email address of your Gmail account. This will therefore override the "MIDAS generated emails appear from" setting in MIDAS, and all emails sent to clients from users within your MIDAS system will also appear sent from the name/email address associated with your Gmail account, rather than from the name/email address of the user within MIDAS

You might also be interested in...


MIDAS » KB » Support » Article 00150

← Return to the Knowledge Base