# Email creation doesn't sent, email test not working and the section EmailTransport doesn't exist

**URL:** <https://community.passbolt.com/t/email-creation-doesnt-sent-email-test-not-working-and-the-section-emailtransport-doesnt-exist/7776>\
**Category:** Installation Issues\
**Created:** [June 19, 2023, 12:14pm UTC](https://community.passbolt.com/t/email-creation-doesnt-sent-email-test-not-working-and-the-section-emailtransport-doesnt-exist/7776 "2023-06-19T12:14:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathz](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@Mathz](https://community.passbolt.com/u/Mathz)\
**Post date:** [June 19, 2023, 12:14pm UTC](https://community.passbolt.com/t/email-creation-doesnt-sent-email-test-not-working-and-the-section-emailtransport-doesnt-exist/7776/1 "2023-06-19T12:14:41Z")

</div>

I have created a new accout and the mail doesn’t sent. The test mail not working : “Could not send the test email.  
Error: stream\_socket\_client(): unable to connect to tcp://mydomain:587 (Connection refused)”  
I have seen : [Passbolt Help | Why are my emails not being sent?](https://help.passbolt.com/faq/hosting/why-email-not-sent?pk_vid=16376f8b1bc5b5e71687174396509893) and [Passbolt Help | Configure email providers](https://help.passbolt.com/configure/email/setup)  
In my passbolt.php the section ‘EmailTransport’ does not exist and I don’t where to paste it.  
I didn’t mention it but I use gmail smtp

---

<div class="post-metadata">

**Author:** ![garrett](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/garrett/32/545_2.png) [@garrett](https://community.passbolt.com/u/garrett)\
**Post date:** [June 19, 2023, 12:41pm UTC](https://community.passbolt.com/t/email-creation-doesnt-sent-email-test-not-working-and-the-section-emailtransport-doesnt-exist/7776/2 "2023-06-19T12:41:01Z")

</div>

If you are using Gmail smtp, and it’s not a workspace related account, did you establish 2fa with Google on the account and create an app password as a stand in for the password? Gmail blocks use of main password.

Some settings are being moved to the admin gui in combination with database storage. They may not appear in `passbolt.php` anymore.

---

<div class="post-metadata">

**Author:** ![Mathz](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@Mathz](https://community.passbolt.com/u/Mathz)\
**Post date:** [June 19, 2023, 12:59pm UTC](https://community.passbolt.com/t/email-creation-doesnt-sent-email-test-not-working-and-the-section-emailtransport-doesnt-exist/7776/3 "2023-06-19T12:59:50Z")

</div>

I didn’t establish 2fa with google or other app.

---

<div class="post-metadata">

**Author:** ![garrett](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.passbolt.com/garrett/32/545_2.png) [@garrett](https://community.passbolt.com/u/garrett)\
**Post date:** [June 19, 2023, 1:20pm UTC](https://community.passbolt.com/t/email-creation-doesnt-sent-email-test-not-working-and-the-section-emailtransport-doesnt-exist/7776/4 "2023-06-19T13:20:47Z")

</div>

Once you set up 2fa on the Google account, scroll ALL the way down on the 2fa settings page and you’ll see an option to create an app password.
