| 开发者 | mrsureshlk |
|---|---|
| 更新时间 | 2026年9月30日 12:48 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
mail() function, which many hosts block and most inboxes don't trust.
Lexiata SMTP sends every WordPress email through a real mail server instead – your Gmail or Google Workspace account, Microsoft 365, your hosting mailbox, or a sending service like Brevo or SendGrid. Your emails leave signed in, from your own address, which makes them far more likely to reach the inbox.
It is deliberately small. No upsell banners, no dashboard clutter, no tracking – just the three things you need: connect, test, and see what was sent.
Set up in about two minutes
Pick your email service and Lexiata SMTP fills in the server, port and encryption for you. Type your username and password, save, and you are done. Every preset comes with a short, current note on the one thing people usually get wrong – like Gmail's App Password or SendGrid's "apikey" username.
Ready-made settings for:
wp-config.php and the fields lock automatically.wp_mail() goes through Lexiata SMTP automatically: WooCommerce order emails, Contact Form 7, WPForms and Elementor form notifications, membership and LMS plugins, new-user and password-reset emails.
For developers and agencies
Lock settings per site from wp-config.php:
define( 'LXSMTP_HOST', 'smtp.example.com' );
define( 'LXSMTP_PORT', 587 );
define( 'LXSMTP_ENCRYPTION', 'tls' ); // tls, ssl or none
define( 'LXSMTP_AUTH', true );
define( 'LXSMTP_USER', 'hello@example.com' );
define( 'LXSMTP_PASS', 'your-password' );
define( 'LXSMTP_FROM_EMAIL', 'hello@example.com' );
define( 'LXSMTP_FROM_NAME', 'Example Store' );
Optional: LXSMTP_SECRET_KEY sets your own key for encrypting the stored password.
Hooks:
lxsmtp_timeout – SMTP timeout in seconds (default 30).lxsmtp_smtp_options – stream context options passed to PHPMailer's SMTPOptions.lxsmtp_phpmailer_configured – runs after the SMTP connection has been configured.WordPress uses PHP mail() by default. Many hosts disable it, and emails that do go out aren't authenticated, so Gmail and Outlook often reject them or file them as spam. Sending through SMTP fixes both problems.
Port 587 with TLS works almost everywhere. Port 465 uses SSL. If your host blocks both, some services (such as SMTP2GO and Brevo) also accept port 2525. Choosing a preset sets this for you.
Google doesn't accept your normal password for SMTP. Turn on 2-Step Verification for the account, create an App Password at myaccount.google.com/apppasswords, and paste the 16-character code into the password field.
Microsoft 365 business mailboxes work when SMTP AUTH is enabled for the mailbox. Personal Outlook.com and Hotmail accounts no longer accept password sign-in over SMTP. Microsoft has also announced that password-based SMTP AUTH will be switched off for existing tenants at the end of December 2026 (admins can re-enable it for now), so for a long-term setup a sending service such as Brevo or SendGrid is the safer choice.
SMTP fixes how email leaves your site. Inboxes also check that your domain authorises the sender through SPF, DKIM and DMARC DNS records. Your email provider gives you the exact records to add – once they're in place, inbox placement improves dramatically. Also make sure the From email is on your own domain.
Keep "Use this From email for every message" turned on. Most SMTP servers only send as the mailbox you signed in with, and this setting makes sure other plugins can't override it.
It's encrypted with libsodium, using a key derived from your site's security keys, before it's stored. It's never shown again after saving. If you'd rather not store it at all, define LXSMTP_PASS in wp-config.php. Note: if your WordPress security keys (salts) change, simply re-enter the password – the plugin will tell you.
No. It stores the recipient, subject, status, error message, attachment count, the plugin that sent it, and the time. Message bodies are never saved. Entries are deleted automatically after the period you choose, and you can turn the log off completely.
Please use one SMTP plugin at a time. Two plugins configuring the mailer will override each other.
Yes. Each site has its own settings and log. Network activation creates the log table on every site.
Open Settings → Lexiata SMTP and click Report a bug in the top-right corner. Your email app opens a message to info@lexiata.lk with a short template and your site's technical details (WordPress, PHP and PHPMailer versions, mail route). Passwords, usernames and recipient addresses are never included, and nothing is sent until you press Send. You can also post in the support forum.
By default your settings and log are kept, so reinstalling restores your setup. Turn on "Remove all data when the plugin is deleted" before deleting to clean up everything.