În mod implicit, WordPress trimite e-mailuri folosind funcția mail() din PHP. Această metodă este suficientă în multe cazuri, dar unii furnizori de servicii de e-mail pot respinge mesajele trimise în acest mod din cauza politicilor din ce în ce mai stricte de combatere a spamului și de autentificare a e-mailurilor.
O soluție mai fiabilă este configurarea WordPress pentru a trimite e-mailuri prin SMTP. Aceasta funcționează similar cu un client de e-mail, unde mesajele sunt trimise printr-o căsuță poștală autentificată folosind un nume de utilizator și o parolă. Ca urmare, livrarea e-mailurilor este, în general, mai fiabilă și mai puțin susceptibilă de a fi marcată ca spam.
In this guide, we’ll use the WP Mail SMTP plugin.
Table of Contents
Contents
- Installing the WP Mail SMTP Plugin
- Initial Configuration
- Sending a Test Email
- SMTP Configuration Settings
Installing the WP Mail SMTP Plugin
Log in to your WordPress administration panel and navigate to:
Plugins → Add New
In the search field, enter:
WP Mail SMTP When the plugin appears in the search results:
- Click Install Now
- Wait for the installation to complete
- Click Activate
After activation, the setup wizard will launch automatically.
You can also access the plugin settings later via:
WP Mail SMTP → Settings
Initial Configuration
When the setup wizard appears, click:
Let’s Get Started
Select a Mailer
Choose:
Other SMTP Then click:
Save and Continue
Enter SMTP Settings
Fill in the following values:
| Setting | Value |
|---|---|
| SMTP Host | smtp.mybox.com |
| Encryption | TLS |
| SMTP Port | 587 |
| Authentication | Enabled |
| SMTP Username | Your full email address |
| SMTP Password | Your mailbox password |
Example:
SMTP Host: smtp.mybox.com
Encryption: TLS
Port: 587 Click:
Save and Continue
Additional Settings
The next wizard steps contain optional settings.
In most cases, you can leave the default values unchanged and continue through the wizard until setup is complete.
If prompted about:
- Usage tracking
- Plugin improvements
- WP Mail SMTP Pro
you can safely skip these steps.
Once finished, click:
Finish Setup
Sending a Test Email
To verify that SMTP is working correctly:
- Open: WP Mail SMTP → Tools → Email Test
- Enter the email address that should receive the test message.
- Click: Send Email
If the configuration is correct, you should see a success message confirming that the email was sent.
You should also receive the message in the destination mailbox shortly afterward.
SMTP Configuration Settings Explained
From Email
Enter the email address that will be used to send messages.
Example:
[email protected] Force From Email
Enable this option to ensure all WordPress emails use the configured sender address.
From Name
Specify the name that recipients will see.
Examples:
My Website
Support Team
Your Company Name Mailer
Select:
Other SMTP SMTP Host
For mybox mailboxes, use:
smtp.mybox.com Encryption
Select:
TLS SMTP Port
For TLS encryption, use:
587 Authentication
Enable SMTP authentication.
This ensures messages are properly authorized before being sent.
SMTP Username
Enter the full mailbox address.
Example:
[email protected] SMTP Password
Enter the password associated with the mailbox.
After completing the configuration, click:
Save Settings
Why Use SMTP Instead of PHP Mail?
Using SMTP provides several advantages:
- Better email deliverability
- Reduced risk of messages being marked as spam
- Proper authentication through your mailbox
- Improved compatibility with modern email providers
- Easier troubleshooting through SMTP logs
Summary
To improve email delivery from WordPress, install the WP Mail SMTP plugin and configure it to use SMTP authentication. For mybox mailboxes, use the following settings:
SMTP Host: smtp.mybox.com
Encryption: TLS
Port: 587
Authentication: Enabled
Username: your-email-address
Password: your-mailbox-password Once configured, send a test email to verify that WordPress can successfully send messages through your mailbox.