Settings for SMPT with Gmail

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
Vasile Borza
Registered User
Posts: 9
Joined: Thu Mar 09, 2017 3:52 pm

Settings for SMPT with Gmail

Post by Vasile Borza » Thu Mar 09, 2017 5:49 pm

I worked three days to understand the necessary settings for SMTP email sent via the gmail account. I use phpBB 3.2.0, Fedora 25 and MariaDB, php 7.02. There is a known bug that I reported: the button "Send a test email" is not working.
Finally settings that everything is okay, are these:

Contact email address: username@gmail.com
Return email address: username@gmail.com
Use SMTP server for email: Yes
SMTP server address: smtp.gmail.com (without ssl: !!)
SMTP server port: 587
Authentication method for SMTP: LOGIN
SMTP username: username@gmail.com
SMTP password: password
For me any other settings like 465 port or ssl://smtp.gmail.com, or tsl://.. or PLAIN , or any combination is not working.

Explode!
Registered User
Posts: 47
Joined: Mon Nov 26, 2007 10:06 am

Re: Settings for SMPT with Gmail

Post by Explode! » Wed Jun 13, 2018 7:37 am

I found this thread while looking up the best configuration to use a Gmail account for email delivery and thought I'd add an update to the OP.

phpBB 3.2.2
php 7.0.3
Ubuntu 16.04.1

I used all of the settings mentioned in my configuration and emails would not work. I found that Gmail have introduced a security setting to prevent less secure access, which this is classed as.

To get things working you need to log in to the Gmail account you're using and from this page: https://myaccount.google.com/security change "Allow less secure apps" to ON.

If like me your email account is managed through G-Suite then you'll first have to allow the user to do this from the Admin Centre Security Settings. "Allow users to manage their access to less secure apps".

Once I'd done this the "Send test email" was delivered to my board admin account and new registration emails were successfully received.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19973
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Settings for SMPT with Gmail

Post by Mick » Wed Jun 13, 2018 7:52 am

If you continue having mail issues try using the PHP mail() function (SMTP off) and don’t use “free” email addresses but use an email address supplied by your host admin@mydomain.com for example.

Is there any specific reason you want to use SMTP?
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

Explode!
Registered User
Posts: 47
Joined: Mon Nov 26, 2007 10:06 am

Re: Settings for SMPT with Gmail

Post by Explode! » Wed Jun 13, 2018 8:02 am

Hi Mick, thanks for the reply, the mail is working fine through SMTP. I was just reporting back what I did to get it working :)

I am not using an @freedomain.com - I'm nowusing SMTP because regardless of my SPF settings mail delivery directly out of the server hosting the board to new or existing members has always been sketchy.

Using the authenticated login it will be sent from the account itself hence the delivery should be more reliable.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19973
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Settings for SMPT with Gmail

Post by Mick » Wed Jun 13, 2018 8:14 am

No worries it’s good you have it working👍🏼

I had an SMTP set up that had been sketchy for a long time, some emails it sent others it didn’t including the test mail. Changing to non SMTP and using a domain email miraculously made it all work.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

User avatar
Lumpy Burgertushie
Registered User
Posts: 64859
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Settings for SMPT with Gmail

Post by Lumpy Burgertushie » Wed Jun 13, 2018 3:11 pm

gmail is a free email

the point is to use a email at your host like you@yourdomain.com

many hosts do not allow relaying email through their server from any other server much less something like gmail or hotmail or other free email providers.
it is always best to use a email address at the domain you are on.


robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

Explode!
Registered User
Posts: 47
Joined: Mon Nov 26, 2007 10:06 am

Re: Settings for SMPT with Gmail

Post by Explode! » Wed Jun 13, 2018 3:45 pm

Hi Robert,

You're not right there, Gmail can be used for business through G-Suite which allows you to use your own @yourdomain.com as I mentioned earlier in the thread and this is how I'm configured.

User avatar
Lumpy Burgertushie
Registered User
Posts: 64859
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Settings for SMPT with Gmail

Post by Lumpy Burgertushie » Wed Jun 13, 2018 3:54 pm

gmail can be used for anything but it remains that it is a free email provider.

I don't understand what the other part means. if you are using your gmail address for the smtp in your board then you are not using the smtp server at your host nor are you using the built in php mail of your host.

uncheck smtp, don't use gmail at all. create ( if you haven't already ) a board email account on your host and use that for the board email in the settings area of the admin panel.

test, see what happens. remember none of this has anything to do with gmail for the test.


robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19973
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Settings for SMPT with Gmail

Post by Mick » Wed Jun 13, 2018 4:18 pm

Lumpy Burgertushie wrote:
Wed Jun 13, 2018 3:11 pm
it is always best to use a email address at the domain you are on
After several years reading you say this and my recent similar issues I have to say I think you’re correct. My sketchy email set up suddenly burst in to life after I started using my domain email address. I’m not saying why this is, I don’t know but it’s worked on two boards with email issues in the last three days.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

Explode!
Registered User
Posts: 47
Joined: Mon Nov 26, 2007 10:06 am

Re: Settings for SMPT with Gmail

Post by Explode! » Wed Jun 13, 2018 4:59 pm

Robert, G-Suite isn't free, it's a service from Google to host your own domain there for emails much like Office365 from Microsoft. It has nothing to do with free Gmail accounts.

User avatar
Lumpy Burgertushie
Registered User
Posts: 64859
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Settings for SMPT with Gmail

Post by Lumpy Burgertushie » Wed Jun 13, 2018 7:27 pm

Explode! wrote:
Wed Jun 13, 2018 4:59 pm
Robert, G-Suite isn't free, it's a service from Google to host your own domain there for emails much like Office365 from Microsoft. It has nothing to do with free Gmail accounts.
ok, why not try what we are suggesting to see what happens. shouldn't take more than a couple of minutes and then you will know.
besides, if you already have a email address at yourdomain for the board why are you using gmail to begin with? you can simply create a forward for your board email to your gmail etc.


robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

Explode!
Registered User
Posts: 47
Joined: Mon Nov 26, 2007 10:06 am

Re: Settings for SMPT with Gmail

Post by Explode! » Wed Jun 13, 2018 7:29 pm

I don't have any problems, what do I need to try?

My settings are great.

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: AbaddonOrmuz, invenio, Josephloush, Lumpy Burgertushie, stevemaury and 40 guests