Mails sent just get stuck in queue
You need to use port 587 with TLS.
- Gmail SMTP port (TLS): 587
- Gmail SMTP port (SSL): 465
Source What Are the Gmail SMTP Settings?
I'm getting an error message that my app is not secure
Someone just tried to sign in to your Google Account myaccount@gmail.com from an app that doesn't meet modern security standards.
You need to change a setting on your Gmail account.
Login to Gmail
Go to "My account"
Select "Sign-in & security"
Scroll to the bottom of the page
Set "Allow less secure apps" to "ON"
![enter image description here](../../I/static/images/712a669f6845f3ddcb5630a2a75f6478cd85566146526bac8f919609b7761454.png)
Try to send your emails again.
Allowing less secure apps to access your account
Google may block sign-in attempts from some apps or devices that do
not use modern security standards. Since these apps and devices are
easier to break into, blocking them helps keep your account safe.
Some examples of apps that do not support the latest security
standards include:
- The Mail app on your iPhone or iPad with iOS 6 or below
- The Mail app on your Windows phone preceding the 8.1 release
- Some Desktop mail clients like Microsoft Outlook and Mozilla Thunderbird
Change account access for less secure apps
To help keep Google Apps users' accounts secure, we may block less
secure apps from accessing Google Apps accounts. As a Google Apps
user, you will see a "Password incorrect" error when trying to sign
in. If this is the case, you have two options:
Option 1: Upgrade to a more secure app that uses the most up to date security measures. All Google products, like Gmail, use the latest
security measures.
Option 2: Change your settings to allow less secure apps to access your account. We don't recommend this option because it might make it
easier for someone to break into your account. If you want to allow
access anyway, follow these steps:
- Go to the "Less secure apps" section in My Account.
- Next to "Access for less secure apps," select Turn on. (Note to Google Apps users: This setting is hidden if your administrator has
locked less secure app account access.)
Source Allowing less secure apps to access your account
You are correct i was using the wrong port after changing to 587 i got one partial success saying google prevented the sign in attempt coz app doens't meet modern standards but then after that nothing – SeanClt – 2016-06-10T21:50:20.830
@SeanClt What is the exact error message? – DavidPostill – 2016-06-10T21:59:15.980
no error message email just sits on the queue – SeanClt – 2016-06-10T22:09:06.490
@SeanClt So what is this "app doens't meet modern standards" then? – DavidPostill – 2016-06-10T22:10:00.933
Message in the email : Someone just tried to sign in to your Google Account myaccount@gmail.com from an app that doesn't meet modern security standards. – SeanClt – 2016-06-10T22:11:21.403
You need to change a setting on your Google account. I will update the answer. – DavidPostill – 2016-06-10T22:13:26.557
thank you i just added screenshot of my settings, Next i m going to try my zoho account instead of gmail but i might not be able to test further before monday Really appreciate the help – SeanClt – 2016-06-10T22:15:25.887
Answer updated. If you change as described Gmail should work. – DavidPostill – 2016-06-10T22:21:25.587
Thank you I'll test this again and also post how I am sending the emails – SeanClt – 2016-06-10T22:22:17.817