I have not changed the SMTP settings inside Moodle.
All users are receiving the emails other than those with @gmail.com addresses.
I am using self registration. We also have a custom attribute on registration which auto-enrols users to the relevant courses. Can I disable the email verification?
Moodle Emails not sending to users with a gmail address
by Louie Aldons-Locke -
Number of replies: 5
In reply to Louie Aldons-Locke
Re: Moodle Emails not sending to users with a gmail address
by Louie Aldons-Locke -
UPDATE: Emails are being received by google workspace accounts, just not domains that end in @gmail.com.
In reply to Louie Aldons-Locke
Re: Moodle Emails not sending to users with a gmail address
by Ken Task -
The Global War vs SPAM/Phishing/etc. goes on ... and on ... and on! 
Not long ago saw an article/announcement (don't have link now, sorry) that said both Yahoo and Google were going to require both SPF and DKIM now. Those are DNS 'things'. Does your SMTP setup/servers provide both SPF and DKIM?
To check ... while looking at a message in Google, use the '3 dot' drop down menu on right and select 'Show Original' ... that's the message header.
At the top of the screen that displays - below an example of a message that came from moodle.org forums:
| SPF: | PASS with IP 54.x.x.x Learn more |
|---|---|
| DKIM: | 'PASS' with domain moodle.org Learn more |
| DMARC: | 'PASS' Learn more |
All of the "Learn More" links goes to (I think):
For your 'reading pleasure' (NOT!) 
Reference that might help:
DKIM
SPF
Moodle does now have a setup for DKIM generation but it requires software to be installed on your server and DNS entries that have to match what has been generated on your server.
BTW, am working through this right now (using SendGrid API key SMTP) and having issues with the setup of DNS .... so you might also have to communicate what's needed with your SMTP provider.
If it's not one thing it's another! 
'SoS', Ken
In reply to Ken Task
Re: Moodle Emails not sending to users with a gmail address
by Louie Aldons-Locke -
Thanks so much for the reply, Ken.
I'm now having an issue where no emails are being sent/received!
Can I just disable the verification email as it truly is a feature that I do not need! This will solve literally all of my issues 😅
I'm now having an issue where no emails are being sent/received!
Can I just disable the verification email as it truly is a feature that I do not need! This will solve literally all of my issues 😅
In reply to Louie Aldons-Locke
Re: Moodle Emails not sending to users with a gmail address
by Ken Task -
"... no emails are being sent/received!"
Does that mean distribution of forced subscribed forum postings as well? (Literally ALL email?)
Yes, think there is a way ... but you'll have to search your admin interface in your moodle to find it.
Please see:
and the warning that goes along with that ...
"Warning: Enabling self registration results in the possibility of
spammers creating accounts in order to use forum posts, blog entries
etc. for spam. This risk can be minimized by limiting self registration
to particular email domains with the allowed email domains setting in Administration > Site administration > Plugins> Authentication > Manage authentication.
Alternatively, self registration may be enabled for a short period of
time to allow users to create accounts, and then later disabled."
There is also a setting in moodle for allowed domains ... which, in your case could be massive - but might be better than nothing!
Sometimes, we do things to solve an immediate issue, but then create other issues. You could be jumping out of the pan and into the fire!!! :|
Please PM me with the URL to your moodle and I'll do some remote/non-evasive checking/testing for ya and report back my findings. Offer isn't forever! 
'SoS', Ken
In reply to Louie Aldons-Locke
Re: Moodle Emails not sending to users with a gmail address
by Visvanath Ratnaweera -
> no emails are being sent/received
What does that mean, not sent and not received? If an e-mail is not sent, then there is nothing to receive!
What does that mean, not sent and not received? If an e-mail is not sent, then there is nothing to receive!