Jul 29, 2021·1 min read

Custom SMTP and Gmail module: where to find settings

SMTP. Connect your app to Gmail. Step-by-step instruction.

Custom SMTP and Gmail module: where to find settings

SMTP settings can be found in your mail service documentation or by searching for "SMTP + settings (name)".

The URL for the Google help page with settings for Gmail:

https://support.google.com/mail/answer/7126229

Additional mail settings

Sometimes additional permissions and settings are required for everything to work. Gmail requires you to let third-party applications connect to your mailbox.

If this setting is disabled, then it won't be possible to send an email- when you try to do this, a service message with an error will pop up.

How to let an app connect to Gmail

Open your browser and sign in to your Google account.

Go to the help center and click on the corresponding link to open the access control page. Here is the address: https://myaccount.google.com/lesssecureapps.

In the opened window, move the selector to let the connection.

If Google has blocked the connection

Set Up SMTP With Confidence
Avoid common SMTP pitfalls by setting up and validating your settings inside your app.
Start Building

Even after you have permitted third-party applications to connect, Google can deny access - you need to confirm that it is you who are requesting it.

Attention! Make sure to grant access to your application. Proceed to this section only after you have completely configured the form for sending an e-mail and tried to send an email.

Permitting the connection

Log into your Google account. See if there are security notices on the homepage and go through them.

If you find a message about a blocked connection, confirm that you are the one who tried to connect.

UnlockCaptcha

Go to https://accounts.google.com/DisplayUnlockCaptcha and confirm that you are allowing access to your email to the application that recently tried to connect.

Follow the instructions and build your application here.

FAQ

Where can I find my SMTP settings?

Your mail provider publishes the SMTP host, port, encryption method, username, and password rules in its account or help pages. Search for the provider name plus “SMTP settings” if you cannot find them.

Can I still enable less secure apps in Gmail?

Gmail does not accept the old “less secure app” option anymore. Use an app password when your Google account supports it, or set up the modern sign-in method required by your app.

Why did Google block my SMTP connection?

Google may block a first connection when it looks unusual. First complete the mail form settings and send a test message, then review the security alert in the same Google account.

What is a Gmail app password?

An app password is a separate password that Google creates for a mail app. It lets the app send mail without using your normal Google account password.

How do I create an app password for Gmail?

Turn on two-step verification in your Google account, then open the App passwords section and create one for the mail connection. Copy it when Google shows it, because you may not see it again.

What should I enter for the Gmail SMTP username and password?

Use the SMTP username and app password exactly as Gmail provides them. A typo, missing encryption setting, or wrong port can prevent delivery even when the account details are correct.

Which details does an SMTP connection need?

Start with the SMTP host, port, encryption type, username, and password or token. Your provider may also require you to verify the sender address or approve the connection.

How can I test whether my SMTP setup works?

Send a test email after saving the settings. Check the app error message and the mailbox’s spam folder, then confirm that the sender address matches the account you configured.

What should I do after a blocked connection alert?

A blocked connection means Google or the mail provider rejected the sign-in attempt. Open the account security notices, confirm any valid attempt, and try again after checking the SMTP details.

Can I use a mail provider other than Gmail?

Yes. The same setup process works with most mail services, but each provider uses its own server address, ports, authentication rules, and security requirements.

Easy to start
Create something amazing

Experiment with AppMaster with free plan.
When you will be ready you can choose the proper subscription.

Get Started