Port 25 Blocked or SMTP Connection Refused From Your Server or Network
Many providers block port 25. Use an authenticated submission port with a mail service.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Why
Cloud and home networks often block outgoing port 25 to stop spam.
Fix
- Use port 587 (STARTTLS) or 465 (SSL/TLS) with a mail service that provides SMTP login.
- Check the host's firewall rules for outbound access.
- Use a transactional email provider for application mail.
- Test the connection from the server with a simple command-line tool, and read the exact error.
- Verify credentials and the From address.
See WordPress SMTP setup and PHP Contact Form Not Sending Mail: Use SMTP Instead of mail().
Related guides
- WooCommerce Password Reset Emails Not Arriving
- WooCommerce Order Emails Not Sending or Going to Spam
- WooCommerce Admin New Order Email or Notification Not Arriving
- Outlook 'Cannot Send Message' on Mobile Hotspot or Public Wi-Fi: Port Blocks
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.