Title: Error sending mails
Last modified: October 18, 2023

---

# Error sending mails

 *  Resolved [papacico](https://wordpress.org/support/users/papacico/)
 * (@papacico)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-sending-mails-3/)
 * hi I am trying to send mail using this plugin but I get the same error al the
   time saving the details or after sending a test email, pls look at the details
   I have filled [https://prnt.sc/8Y_OhkFNwqb6](https://prnt.sc/8Y_OhkFNwqb6)
   the
   password is correct as I have tried to login to the MS licensed account via the
   browser
 *     ```wp-block-code
       WP SMTP connection error
       Seems like there are some problems with the enterd information. Please re-check & re-enter it and hit the "Save changes" button.
   
       We recently made some changes regarding how we save the username and password in the database, namely we are encrypting them, so that might be the reason for the connection error. Re-entering and saving them should solve the issue.
       ```
   
 * thank you
   PS I am on CenOs 7 and PHP 7.4
    -  This topic was modified 2 years, 7 months ago by [papacico](https://wordpress.org/support/users/papacico/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-sending-mails-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Nukak Asanansi](https://wordpress.org/support/users/nasanansi/)
 * (@nasanansi)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-sending-mails-3/#post-17136491)
 * Hi [@papacico](https://wordpress.org/support/users/papacico/),
 * Thanks for reaching out.
 * It seems the issue you have raised is from the WP SMTP plugin. Whereas, we are
   the support team for **WP Mail SMTP**.
 * I’m sorry about the confusion there but both plugins are not the same. WP SMTP
   is a completely different plugin not managed by us.
 * Please reach out to their support team [here](https://wordpress.org/support/plugin/wp-smtp/)
   instead to get some help on the issue you have raised.
 * I hope this helps. Have a good one. 🙂
 *  Thread Starter [papacico](https://wordpress.org/support/users/papacico/)
 * (@papacico)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-sending-mails-3/#post-17138092)
 * Hi thank you for your feed back and sorry for my mistake
 *  Thread Starter [papacico](https://wordpress.org/support/users/papacico/)
 * (@papacico)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-sending-mails-3/#post-17154908)
 * Hello Nukak this time I am having the same issue with your plugin
   this is what
   I find in the log:
 *     ```wp-block-code
       Versions:WordPress: 6.0.6WordPress MS: NoPHP: 7.4.33WP Mail SMTP: 3.9.0
   
       Params:Mailer: smtpConstants: NoErrorInfo: SMTP Error: Could not connect to SMTP host.Host: smtp.office365.comPort: 587SMTPSecure:tlsSMTPAutoTLS:bool(true)SMTPAuth:bool(true)
   
       Server:OpenSSL: OpenSSL 1.0.2k 26 Jan 2017Apache.mod_security: No
   
       Debug:Email Source: WP Mail SMTP Mailer: Other SMTP SMTP Error: Could not connect to SMTP host.
   
       SMTP Debug:2023-10-27 07:49:28 Connection: opening to smtp.office365.com:587, timeout=300, options=array()2023-10-27 07:49:28 Connection failed. Error #2: stream_socket_client(): unable to connect to smtp.office365.com:587 (Permission denied) [/var/www/vhosts/intrapro.ademphis.com/ademphis.com/wp-includes/PHPMailer/SMTP.php line 389]2023-10-27 07:49:28 SMTP ERROR: Failed to connect to server: Permission denied (13)SMTP Error: Could not connect to SMTP host.
       ```
   
    -  This reply was modified 2 years, 7 months ago by [papacico](https://wordpress.org/support/users/papacico/).
 *  Thread Starter [papacico](https://wordpress.org/support/users/papacico/)
 * (@papacico)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-sending-mails-3/#post-17154924)
 * it is probably some server issue as I have tried different smtp plugins and all
   having the same issue but what? One strange thing:
   If I check the rules on my
   firewall I see the port 587 being open587 ALLOW Anywherebut if I check on a port
   checker it shows the port is closed, so could it be that port 587 is not really
   open?
 *  Thread Starter [papacico](https://wordpress.org/support/users/papacico/)
 * (@papacico)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-sending-mails-3/#post-17161476)
 * still waiting

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Error sending mails’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [papacico](https://wordpress.org/support/users/papacico/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/error-sending-mails-3/#post-17161476)
 * Status: resolved