I am at my wits end here. I'm trying to set up SMTP settings for use in Wordpress plugin Contact Form 7. My email server is set up through Google Apps and my website is hosted on 1and1. I am using WP plugin Configure SMTP to set it up. After I try to send test email, I get the following error:
SMTP Error: Could not connect to SMTP host.
My SMTP settings are:
SMTP host: smtp.gmail.com
SMTP port: 465
Secure connection: SSL
Auth: yes
SMTP username: my-username#my-domain.com
SMTP password: password
Sender email: my-username#my-domain.com
I have also tried port 587 on TLS and port 25. I have called 1and1 two times, both times they said they don't block ports and cannot help me since my email is pointed to Gmail. I have tried other WP plugins to set up the SMTP settings. I have doublechecked that the MX records that Google supplied me correct in my 1and1 DNS. I have no idea what else I can do, I have read that other have a similar problem with this set up and with others, yet I have not found anything that has solved my issue. Many are saying it is the webhost that is blocking the ports yet 1and1 said both times I called that they don't block ports and it is a Gmail problem. I don't know what else to try.
Any help would be appreciated.
They are not being honest they do block SMTP ports 465 and 587
If you have Domain hosted at 1and1 and configure an email address they miay say they do block..
I have wordpress site attempting to use Contact for 7 and POSTMAN SMTP plugins
Postman has diag routine, it clearly shows that 1and1 are blocking the only mail port open is 443.
Related
I have a WordPress website in a Docker container which is running on linux server, the problem is I can't send the contact form data to my email address in the same server. According to my knowledge, WordPress uses mail() php function.
Server informations :
Debian 8
php 5.6
MTA: Postfix (dkim, spf, dmarc, ssl etc. done)
The server is working and sending emails since years, deliverability 10/10.
I am using the Outlook mobile app to access to my e-mails on my phone to this server, which means that the remote access to the SMTP server is working well. (port 587 on tls)
Docker container informations:
Ip address: 172.18.0.1
network mode: Bridge
Interface name: br-61b941dec29d
The website in the container is using WP 6.1.1 and the problem is (I know it's normal) that no emails are sent from the website, neither by clicking on WP reset password link, nor the contact form of the website, which was created with contact form 7 plugin.
Solutions tried:
I tried with a WP plugin that allows to set up external SMTP host, I set up the IP address of the host server, the port 587 and STARTTLS protocol, it did not work, the plugin has a "send test email" button, but at every try the plugin returns an error from the host server:
Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
But since I can configure mobile app to access the SMTP server, and that the certificate (let's encrypt) is valid (I checked with a ssllabs.com) I don't understand this error.
I tried manually by editing the php.ini file in the container which is located at
/usr/local/etc/php/php.ini-production
SMTP = host_ip_address
smtp_port = 587 and then 25
sendmail_from = myaddress#domain.com
I also edited the /etc/postfix/main.cf by adding 172.18.0.0/24 to mynetworks the inet_interfaces was already set to "all"
mynetworks = xxx.xxx.xxx.0/24 [::ffff:127.0.0.0]/104 [::1]/128 172.18.0.0/24
inet_interfaces = all
None of these worked. I tried sending emails with a simple php script using mail() function, it failed with no error log, at least, the logs are not shown in docker logs.
What I'm looking for
Send the data from the contact form to an email address in this host server. It is not mandatory to use internet, since the container and the MTA are on the same host server.
I have a site in digitalocean hosting and I have some problems sending email from this site.
My site built at wordpress and I'm trying to submit an application to email. It worked on my localhost and my on my server https://cp.beget.com/ but as soon as I transferred it on https://www.digitalocean.com/ it immediately stopped working.
I have a small php script for send emails and it works correctly also I tried change admin email in main wp settings but I havу not received confirm letter on my email.
Server using ubuntu and i set everything up on it for email send and tested this through postfix and it worked correctly.
Maybe someone had this problem and know how it fix
It is better to use SMTP instead of relying php's sendmail which may get blocked on some hosting companies.
You can use the Post SMTP Mailer plugin to overcome this problem.
Just create a new email account at digitalocean and use its smtp server as the outgoing server address at the SMTP plugin. Usually it will be mail.yourdomain.com. Outgoing port can be 25 or 587.
I have tried setting up SMTP in the dotenv file:
MAILER_URL=smtp://mydomain.nl:25?encryption=tls&username=noreply%mydomain.nl&password=***`
And I've sent an email using php bin/console swiftmailer:email:send. This gave me an error:
[app] Exception occurred while flushing email queue: Connection could not be established with host webmail.mydomain.nl [Connection timed out #110]`
So I assumed this is caused by the firewall. So then I tried to send an email via an online SMTP tester and the email got sent and all worked as expected.
However, this still does not work on my server. Even after turning off the firewall on my (Windows) VPS, the same error persists.
My setup is as follows:
I have a VPS (WINDOWS) with plesk where I host my domain and the mail server.
I also have a home server (CENTOS) where I host my subdomain with plesk.
What am I overlooking? What could be the cause of this issue?
Some host providers block 465 and 25 port. So only 587 is left to use. First, contact your host provider and ask if they are blocking SMTP ports. And if not please come back with more information and server config.
So apparently, please correct me if im wrong. This is what I think I did wrong:
I have a subdomain from my main plesk which I host on my home server. The project i'm working on is running from there.
The main domain with that plesk account is running on a VPS with the mailserver.
As it turns out (I think) my ISP from my home internet has restricted access to port 25. And thats why my home server cant access the mail server.
I tried to disable firewalls everywhere, even routed the ports in my router to my home server, nil fix. (please note that i tried to telnet to several SMTP servers not just my own) with all access rejected.
I tried it with another port (465) from my home server and it works now.
At the end using another port did the trick. I am however not sure that this is the issue. But this is just my guess.
I have a website; let's call it abc.com. It's e-mail is handled by Office365. I recently migrated it from a Sharepoint environment to a different webhost (GoDaddy). I have tried using the WP Mail SMTP plugin option to send e-mails, but it fails to send.
My settings are:
smtp: smtp.office365.com
port: 587
encryption: use TLS
authentication: use smtp
Sending fails with the error:
SMTP ERROR: Failed to connect to server: Connection refused (111)
Using the default wp mail with the settings below works to send to e-mail addresses outside the domain, but messages get flagged as spam on addresses within the domain.
header = 'From: '.get_option('blogname').' <wordpress#abc.com>'
I have e-mail routing set to Remote Mail Exchanger. I've tried adding the address wordpress#abc.com to Exchange's allowed list/whitelist, and I even tried adding the host IP to trusted IPs on the server - but it still doesn't work.
As far as I'm aware, GoDaddy do not let you send mail to external SMTP providers. If you're not able to choose another host (which I'd recommend if you can!), you'll need to use wp mail and send all mail to a local address at the same domain, hosted with GoDaddy.
If you wanted to, you could then set up an alias to send it elsewhere.
There's some more background on this over at wordpress.org, such as this thread and this thread.
EDIT
Just realised that the Postman SMTP plugin claims it can get around GoDaddy's filtering using HTTPS:
"Even hosts that block the standard SMTP ports, like GoDaddy or Bluehost, can't stop your email as Postman can deliver via HTTPS if it can't use SMTP."
So maybe give that plugin a go instead. :)
I ended up using the default wp mail.On the client o365 admin I added the email address to the whitelist. Made the mail rule priority over the default spam filter rule.I even went a step further to whitelist the IP but that's overkill I think.
I tried configuring the settings of the IIS Manager and still, it won't work, I have checked the php.ini file of IIS and still no luck.
I also have tried using the WP-Mail-SMTP plugin, still, no luck was found and an error shows up, it looks like this.
"The following From address failed: wordpress#test2 : MAIL FROM command failed,550,The address is not valid."
Where in test2 is the name of the Server.
I am deploying Wordpress at an IIS / Windows Server.
Thanks in Advance.
Create a gmail account then set your smtp settings.
these a few steps have to be follow:
Mailer: SMTP
SMTP Host: smtp.gmail.com
SMTP Port: 465
Encryption: SSL
Authentication: Yes
Username: your full gmail address
Password: your mail password