# Gmail Suite account as SMTP mail sender

**URL:** <https://forum.mautic.org/t/gmail-suite-account-as-smtp-mail-sender/22153>\
**Category:** Mautic 4 Install/Upgrade Support\
**Created:** [December 26, 2021, 8:47am UTC](https://forum.mautic.org/t/gmail-suite-account-as-smtp-mail-sender/22153 "2021-12-26T08:47:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorgeh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jorgeh/32/131_2.png) [@Jorgeh](https://forum.mautic.org/u/Jorgeh)\
**Post date:** [December 26, 2021, 8:47am UTC](https://forum.mautic.org/t/gmail-suite-account-as-smtp-mail-sender/22153/1 "2021-12-26T08:47:17Z")

</div>

I am trying to setup a Google Workspace gmail account in Mautic 4 Mail Send Settings, my PHP version is 7.4.

I have tried an app password and the login usual setup but did not help.

This is the error I get:

Failed to authenticate on SMTP server with username “xxxxx@xxxxxxx.es” using 3 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code “535”, with message "535-5.7.8 Username and Password not accepted

Any help please!

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [December 27, 2021, 12:22am UTC](https://forum.mautic.org/t/gmail-suite-account-as-smtp-mail-sender/22153/2 "2021-12-27T00:22:11Z")

</div>

Hi,

If I recall correctly at some point in time Google started using app passwords. So in order for you to connect / use Gmail you had to generate app specific password \< [Sign in using app passwords - Gmail Help](https://support.google.com/mail/answer/185833?hl=en-GB) \>.

You could also set your account so that you would be able to login to account with your (user) password but I would advise against it, since you have better approach above.

This is not actually issue with Mautic (based on error message).

I would also like to kindly remind you to use support ticket template the next time you post, as its easier to read and I think more people will be interested in helping you.

Regards, M.

---

<div class="post-metadata">

**Author:** ![Jorgeh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jorgeh/32/131_2.png) [@Jorgeh](https://forum.mautic.org/u/Jorgeh)\
**Post date:** [December 27, 2021, 8:12am UTC](https://forum.mautic.org/t/gmail-suite-account-as-smtp-mail-sender/22153/3 "2021-12-27T08:12:13Z")

</div>

Hello, thank you very much for your answer. I fixed it and it works.

Here the details just in case somebody else need it.

1.- Activate 2 step authentication for that user account  
2.- Create and use app password for Mautic instead of your usual password  
3.- Dont select Gmail smtp in Mautic - go to other SMTP server  
4.- Use this smtp setup

[smtp.gmail.com](http://smtp.gmail.com)  
Requires SSL: Yes  
Requires Login Authentication: Yes (App password)  
Port for TLS/STARTTLS: 587

Verify test connection and send test email.

This is it, good luck!

---

<div class="post-metadata">

**Author:** ![hsamandavi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/hsamandavi/32/6703_2.png) [@hsamandavi](https://forum.mautic.org/u/hsamandavi)\
**Post date:** [December 12, 2022, 10:30am UTC](https://forum.mautic.org/t/gmail-suite-account-as-smtp-mail-sender/22153/5 "2022-12-12T10:30:35Z")

</div>

that’s also work for me thanks

---

<div class="post-metadata">

**Author:** ![ashwinis](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@ashwinis](https://forum.mautic.org/u/ashwinis)\
**Post date:** [June 6, 2024, 7:15am UTC](https://forum.mautic.org/t/gmail-suite-account-as-smtp-mail-sender/22153/6 "2024-06-06T07:15:59Z")

</div>

worked for me but i had to use gmail as the option  
maybe cause mine is old mautic

---

<div class="post-metadata">

**Author:** ![ashwinis](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@ashwinis](https://forum.mautic.org/u/ashwinis)\
**Post date:** [June 6, 2024, 7:43am UTC](https://forum.mautic.org/t/gmail-suite-account-as-smtp-mail-sender/22153/7 "2024-06-06T07:43:03Z")

</div>

Only the test mail says success but i dont recieve the mails
