Unable to send email using smtp gmail account - wordpress

I am working on small project using wordpress on my local host using Wamp.
I am trying to send email using smtp using my gmail account but its not working and showing me boolean false when i am trying to send test email.
I tried this with by changing my host and it's working fine with already working host which is mail.name.com.
but its not working with gmail i think there must be some setting in gmail to enable smtp to send mail. I searched online but i am unable to find solution.

step 1:
please login your gmail account and click blow link:
https://www.google.com/settings/security/lesssecureapps
and Access for less secure apps pick Turn On
Step 2:
Disable second steps vitrification off in your gmail account.
also asking with your hosting provider gmail smtp sever all allow or not In
godaddy you can not use gmail smtp server for sending mail.

Related

Gmail api for localhost

I have installed WordPress in my localhost. For sign up verification, I installed wp smtp mail plug in. I want to send mail via gmail. For that I need api client ID and client secret. But when I visit Google developer console, then I found that I can't use my localhost website for that.
My question: how can I get gmail api for WordPress wp smtp mail plug in. (For localhost:port)
Sorry for bad English. Hope you understand :)
There is popular plugin for Gmail:
Gmail SMTP
Gmail SMTP plugin allows you to authenticate with your Gmail account to send email via Gmail SMTP server.

Send mail via SendGrid to Outlook was always failing

I am a newbie in using SendGrid. I have a web application that send a mail to users after the successful registration. I am using send grid to send mails.
It works fine when I try to send Google email accounts. But when I send mails to Outlook email addresses, it always failed to deliver emails.
I checked the SendGrid 'Activity' section it shows like below.
You might need to setup domain authentication. This link should be a good place to start: https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/
Outlook might have different firewall rules blocking incoming (potentially malicious) emails while GMail might have a different set of them.

Wordpress smtp.google.com issue on Windows azure

When sending gmail SMTP mail from Wordpress on a windows Azure website, something goes terribly wrong.
I managed to send once or twice a message, but mostly the authentication get's denied. And we get a lot of message of gmail, asking if we authenticated. Or if we are hacked.
Now the weird thing is that when i log in to the Gmail account on MY computer. Go to the following url and accept: https://accounts.google.com/b/0/DisplayUnlockCaptcha .
it suddenly works (for some time, and only form my pc).
As the worpress website is hosted on a Windows azure website, we can not log in on the server to navigate to this url:https://accounts.google.com/b/0/DisplayUnlockCaptcha from there.
Anyone got a solution for this issue? (As i don't have RDP on our azure Website, we can't access the machine to whitelist the ip).
Reference: https://support.google.com/mail/answer/10336?hl=en
You can try to generate an application-specific password for your gmail SMTP if you enable 2-step verification. That may help you to avoid manual CAPTCHA resolve.
I would still like to recommend SendGrid as you are using Azure. SendGrid is provided as an add-on in Azure. You can easily apply a SendGrid service and get 25,000 email per month for free.

How do I send SMTP mail from a Azure website?

I'm using the smtpclient class to send email from my asp.net website hosted on Azure in the 'shared' setup. Everywhere it says that port 25, and ALL ports are open on the Azure servers. My code works from my onw pc, but when published on Azure, it breaks. I am using gmail port 587 secure smpt and I get the error System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.
Any ways to get around this? (Without installing a vm with Exchange on it, like ocme on, it's a simple email message).
You are getting that error because of these two possible reasons:
You are using the SMTPClient of Gmail and you are passing the EmailId of some other website like Yahoo/Hotmail etc.
EmailId you are using is not authenticated, you need to provide your mobile number to authenticate your Email Id.
If you are using Yahoo/Hotmail then you can refer to this article which I had created on http://www.c-sharpcorner.com/
http://www.c-sharpcorner.com/UploadFile/cd7c2e/send-bulk-email-from-yahoo-and-hotmail-using-Asp-Net/

cpanel sending email using gmail smtp in wordpress plugin

I'm using wordpress 3.8, Mail SMTP plugin to send emails, and cpanel. In my local it works fine as my host is gmail. And once I uploaded it live I get authentication failed and I'm sure I typed my gmail username and password correctly. Is there any configuration that must be done? In cpanel perhaps? Or the plugin itself? Please help out. Any help would be great. Thanks.
Can you please check you server is configurations done as per Googles Settings if your want to send mail through Google servers?
Add MX entries for Google Apps In server
Google SMTP email settings in Plugin
Otherwise you need to check the possibilities of your server to send email.
Domain & Server capability Checking , SMTP settings

Resources