Wordpress smtp.google.com issue on Windows azure - wordpress

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.

Related

How to setup email with AWS Lightsail

I've recently hosted my wordpress website through AWS Lightsail. The site has a contact form and a newsletter, but neither are working. I'm also unable to send a password reset email through wordpress, receiving a message that the host may have disabled the mail() function.
How do I setup email on my website? Is it handled through the domain or the host? I've read that I may need to sign up for AWS SES, however I'm unsure how to proceed. My client has also informed me that they have Outlook 365 setup for the domain, but I'm unsure where that fits in.
Apologies for the vagueness. I'm new to hosting websites online, and have been unable to find any useful tutorials/resources so any help would be greatly appreciated.
I would suggest not hosting your client's email through your Lightsail server. There are a lot of extra headaches to consider and there are other services that are more reliable and offer a better more robust user interface than the options available on server.
To get your client a custom domainname email address (ie joe#domainname.com) here are two options:
Zoho -
Cost: FREE
You can sign up here: https://www.zoho.com/workplace/pricing.html?src=zmail
You need to verify the domain name for this to work (either by adding an HTML file to the site or a CNAME to the domain)
GSuite by Google - Cost: $5/user/month
You can sign up here: https://inbox.google.com/u/0/search/google%20suite#m_-1052842142248281614_
You can also get some good promotional codes to get 20% off the first year - here's one: 9746YLRVNWERPAH
And, to your question about making sure forgot password emails are sent, make sure sendmail is installed on the server (apt-get install sendmail), that the /etc/hosts file contains the following
127.0.0.1 localhost localhost.localdomain yourhostnamehere
and that port 25 is open on the server.

Azure AD Connect with Office365

I'm trying to install an Office365 authentication on my website running Wordpress.I have a few questions :
My server runs on Debian with ISPConfig and it seems that I need a Windows Server. I that possible to add Office365 authentication on a Linux server ?
I have an Azure AD and would like the Office365 login to be the mail of my users. I think this is what they call Synchronized identity but I didn't find any resources on how to do this.
Yesterday while trying the plugin SSO-AAD-Wordpress I had the button to login using Azure but when connecting I had "Sorry, but we're having trouble signing you in". I don't know why.
Thank you for your help :)
EDIT : It works now but I have to manually add the users to the Wordpress database. The other thing is that it works with Azure, not with Office365 (I don't know if it's worst mentioning).
Azure AD authentication works for the most part with browser redirects. The OS doesn't matter.
If you want the users' login name to be like first.last#company.com, you will have to register that domain in your Azure AD and set it up as the default.
For the last one we can't really help you unless you tell more details.

How fix SMTP connection from an Azure Website?

Actually we have our website in WindowsAzure.
Its a Classic ASP site and its configured as a "Standard WebSite", 32Bit platform and its working with our domain.
As a traditional web, it uses a SMTP server to send email (ie. contacts from contact page).
We know Azure don´t provide SMTP server so we have tried with all these service with no luck:
RackSpace
Mandrill App
SendGrid (Recommended here).
For all of them, we are getting this error: "The transport failed to connect to the server."
How we can fix it?
Thanks,
We don´t know why but suddenly it begins to work.
The only change we did in the Azure config was putting ON the WebSockets but we think it was the solution.
We left the Mandrill smtp Server.

Sending Gmail from Local Host

I'm using the Acquia stack on my localhost (running Vista) and am trying unsuccessfully to send emails. I want to send them via Gmail, and have tried all sorts of settings in the php.ini file. There are no error messages, but no email is delivered. I've gotten no response on the Acquia forum, so I was hoping someone here might be able to help. Thanks very much.
You need http://drupal.org/project/phpmailer or http://drupal.org/project/smtp because you need to authenticate to Google's SMTP.
If you have access to the server your hosting on you can use MSMTP to completely bypass the internal mailing system (sendmail) and use your external provider at the system level. There's a tutorial on it here:
http://floatsolutions.com/blog/2009/12/avoid-complicated-sendmail-setup-using-msmtp-sendmail-emulator/

How do I configure TFS to work with GMail to send TFS Alerts?

Environment: Windows Server 2008, IIS 7.0, TFS 2008
We run Google Apps for email and I'm having a heck of time setting up TFS to send alerts to our Google hosted mail.
I googled around and found a couple of workarounds however none have worked for me. Any pointers graciously accepted.
Have you tried setting up an SMTP server on the same box as TFS, then configuring it to forward to GMail? That sounds like the easiest solution.
Alternatively, you could write a SOAP endpoint that handled TFS events with as many customizations as you want. This is a little more work but a lot more flexible.
I just ran through this problem in TFS-2013.
I think the root of the problem is that Apps must sign into Google Securely. For secondary apps, that means oauth. For those that can't, Google needs "Application Specific Passwords". Since it can't really trust the email application, it requires you to generate a random password for that specific account.
The solution for me was:
Enable Email Alerts
SMTP Server: smtp.gmail.com
port: 587
SSL Required: Yes
send from: email#mydomain.com
authentication:
username: mygmail#gmail.com
password: RANDOM APP PASSWORD
Can't you just configure TFS to send outgoing email through the Gmail servers?
http://msdn.microsoft.com/en-us/library/ms400808(VS.80).aspx
Does that not do what you need, or am I missing part of the question? We're using a local SMTP server to send email out, but I don't see a reason why you couldn't use a remote one instead.
I verified that WernerCD AppPassword solution works.

Resources