| 开发者 | dadsfam |
|---|---|
| 更新时间 | 2026年10月25日 05:19 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
mail() function, which most hosts either block or deliver straight to spam. DadsFam SMTP replaces it with a real authenticated SMTP connection, so your password resets, contact forms and WooCommerce order emails actually arrive.
Everything described below works on every site. Nothing is disabled, blurred out, time-limited or reduced.
DadsFam AI: your email, watched and fixed
New in 2.2. Open DadsFam SMTP → DadsFam AI and the first thing you see is the answer to the only question that matters: is my email working? If it is not, it says why, in plain words, and what to do about it.
define( 'DFSMTP_BRAIN_OFF', true ); in wp-config.php.
Set up in about two minutes
Pick your provider from the list and the host, port and encryption fill themselves in. Enter your username and password, save, then send a test email. The test shows you the full SMTP conversation, so if something is wrong you can see exactly which step failed.
Supported providers
Gmail, Outlook and Office 365, SendGrid, Mailgun, Amazon SES, Brevo, Postmark, SparkPost, SMTP Senpai, Zoho Mail, Yahoo Mail, Hostinger, cPanel, and any custom SMTP server.
Features
dfsmtp_configure_mailer, dfsmtp_after_configure_mailer, dfsmtp_mail_failed, dfsmtp_mail_logged, dfsmtp_save_settings, dfsmtp_settings_page_end, dfsmtp_nav_pages and others — so you can layer your own behaviour onto the send pipeline. The full list is documented in the header of dadsfam-email-smtp.php.
An optional commercial add-on, DadsFam SMTP PRO, is built on this same hook API for stores and agencies sending at higher volume. It is a separate plugin and is not required — this plugin is complete on its own.
A word about PRO
Right, let me be straight with you, because I hate being sold to as much as you do.
Everything above is free and it stays free. Sending your mail through a proper SMTP server is not a premium feature. Saving your provider details, encrypting your password, logging what went out and resending one that failed are not premium features. Those are things a plugin like this should just do, and if I put them behind a paywall I would be taking the mickey.
There is a PRO add-on. It exists because I am a dad in Cape Town, and this is one of the things that puts food on the table at my house. That is the honest reason. Not "unlock your potential", not "supercharge your workflow". Just: if this plugin got your email sending again and you can spare it, PRO helps me keep building.
There is one PRO version and one price: R500 once off, roughly $35, per plugin. It is not a subscription, there is no yearly renewal, and it does not expire. Pay once and it stays yours, updates included. If the free version does everything you need, use that and think nothing of it — it is not crippled to push you across, and it never will be.
What PRO adds is the stuff you only want once you are sending real volume — sending from more than one mailbox and routing each message to the right one, failing over to a backup server when your main one has a bad day, retrying failed sends on their own, open and click tracking, failure alerts into Slack or Discord, and a weekly delivery digest. That is convenience and automation. It is not the plugin working properly, because the plugin already works properly.
So if the free one does everything you need, brilliant. Genuinely. Use it, and I hope it saves you a frustrating afternoon chasing email that will not send. If you get to the point where the automation would save you real time, PRO is at plugins.dadsfam.co.za.
Either way, thanks for using something I built. — Zak, DadsFam
PRO adds:
dadsfam-email-smtp folder to /wp-content/plugins/, or install through Plugins → Add New.Gmail will not accept your normal account password over SMTP. Turn on 2-Step Verification, then generate an App Password under Google Account → Security → App passwords, and use that instead.
Pick SMTP Senpai from the provider list and the host (relay.mailsenpai.com), port 587 and TLS fill themselves in. If your host blocks 587, use 2525, still with TLS. For the username and password, use the SMTP username and SMTP password from the SMTP Senpai page of your MailSenpai customer area, not the API key that starts with msp_. Send from an address on a domain you have verified with SMTP Senpai. "Sent" in the email log means SMTP Senpai accepted the email. An address on SMTP Senpai's own suppression list is accepted without being delivered, and SMTP Senpai's log shows it as dropped.
Almost all do. Use port 587 with TLS, or 465 with SSL. If neither connects, use the connection test to confirm whether the problem is the network or your credentials, then ask your host whether outbound SMTP is permitted.
Passwords are encrypted with AES-256-GCM using a key derived from your site's own AUTH_KEY, so a stolen database dump does not expose them. They are also never included in a configuration export.
Yes. The plugin runs after WooCommerce and overrides its From address, so store emails send from your configured, authenticated address. There is a diagnostics screen for testing each WooCommerce email type.
No. Each send writes one indexed row, and the log list never loads message bodies. Old entries are purged automatically on a daily schedule according to your retention setting.
Update to 2.1.7 or later. The Default Reply-To setting is only used for emails that do not say who to reply to, so a contact form or enquiry form that sets the visitor as the Reply-To keeps it, and your reply goes to them alone.
No. DadsFam AI runs inside your own WordPress. It reads your own email log and settings, understands questions with a language engine built into the plugin, and does its sums on your own server. There is no outside AI service and no API key. The only connections it makes are to your own mail server (to test the sign-in, without sending anything) and to public DNS (to read your SPF, DKIM and DMARC records).
Only things it can prove: a mail server connection that has just signed in with your own username and password, the DKIM selector your domain actually publishes, the From address your mail server accepts, a rebuilt log table, and lost scheduled tasks. It never changes your password and never switches staging mode off. It keeps watching every change and puts it back if things get worse, and if you undo or turn down one kind of fix twice in a month, it goes back to asking you first. Everything is in the diary with an Undo. Two more things it does only after you switch them on under "What you have taught me": sending the emails that failed while email was broken, once each, after a fix has worked; and holding a flood of one kind of email. Both are off on every site until you choose otherwise.
Only if you switch on "Bounces after sending" and give it the mailbox's details. It then signs in over IMAP once an hour, opens the mailbox read-only, reads only the messages that look like bounces, and never marks, moves or deletes anything. The mailbox password is encrypted like your sending password, and you can use the same one. Microsoft 365 no longer allows password sign-in to IMAP for most mailboxes, so this does not work there.
Three ways, most certain first: the wording WordPress and WooCommerce use for their own emails; the emails your site has sent since 2.2, which record who sent them, so an older email with the same kind of subject is the same kind of email; and, for what is left, the words of the subject in your installed plugins' and theme's own files. It only labels what it is sure of, never touches the emails themselves, and the diary has an Undo that puts every label back. It all happens on your server.
Choose "Paused" on the DadsFam AI screen and it stops checking and changing anything. To remove it completely, add define( 'DFSMTP_BRAIN_OFF', true ); to wp-config.php. Sending, logging and every other feature carry on exactly as before.
English, typing mistakes and all. The rest of the plugin, DadsFam AI's answers included, can be translated.
Turn on blocking mode under Settings → Delivery Controls. Nothing is delivered, but every attempt is still logged so you can confirm what the site would have sent.