DadsFam SMTP 2.3.1 has 13 actions and 12 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when DadsFam SMTP fires an action
add_action( 'dfsmtp_mail_logged', function( $retry_of, $data, $arg3 ) {
// Your code runs here.
}, 10, 3 );
// Change a value DadsFam SMTP is about to use
add_filter( 'dfsmtp_export_config', function( $export ) {
// Change $export here.
return $export;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * This action is documented below. */ do_action( 'dfsmtp_mail_logged', $this->retry_of, $data, true ); -
/** * Fires after the mailer has been configured. Add-ons use this for things like * a global BCC address. */ do_action( 'dfsmtp_after_configure_mailer', $m, $s ); -
/** * Add-ons attach their own exportable data. */ apply_filters( 'dfsmtp_export_config', $export ); -
/** * Let the Pro add-on apply its own part of the bundle. */ do_action( 'dfsmtp_import_config', $input ); -
/** * Add-ons sanitise and merge their own settings here. */ apply_filters( 'dfsmtp_save_settings', $new, $existing ); -
/** * Add-ons append analytics panels (open/click rates and similar). */ do_action( 'dfsmtp_analytics_page_end', $dfsmtp_totals ); -
/** * Lets an add-on (PRO) add its own checks. */ apply_filters( 'dfsmtp_brain_checks', array_values( array_filter( $checks ) ), $s, $deep ); -
/** * Short-circuits a DNS lookup (used by tests, and by hosts whose PHP cannot * resolve). Return an array of dns_get_record()-shaped rows. */ apply_filters( 'dfsmtp_brain_dns_pre', null, $name, $type ); -
/** * Filters the Error Reader's rules, so a rule for another provider can be * added. Rules are tried in order; the first that fits wins. */ apply_filters( 'dfsmtp_brain_error_rules', $rules ); -
/** * Add-ons may prepend their own release notes. */ apply_filters( 'dfsmtp_changelog_entries', $dfsmtp_changelog ); -
/** * Allow an add-on to configure the mailer instead (e.g. smart routing). Return * true to signal it has been fully handled. */ apply_filters( 'dfsmtp_configure_mailer', false, $m, $s ); -
/** * Fires once the free core is fully loaded. Add-ons should hook here rather * than at plugins_loaded, so they can rely on DFSMTP_Mailer and DFSMTP_Logger * already existing. */ do_action( 'dfsmtp_loaded', $mailer ); -
/** * Add-ons can append their own data to the shared DFSMTP JS object. */ apply_filters( 'dfsmtp_localize_admin', $data ); -
/** * Extra table columns contributed by add-ons. */ apply_filters( 'dfsmtp_log_columns', array() ); -
/** * Filters the HTML shown in the email log viewer. */ apply_filters( 'dfsmtp_log_preview_body', $html, $body ); -
/** * Add-ons echo one <td> per column they registered. */ do_action( 'dfsmtp_log_row_cells', $dfsmtp_r ); -
/** * Fires after a failed send has been logged. Add-ons use this for webhook * notifications and SMTP failover. */ do_action( 'dfsmtp_mail_failed', $msg, $mail, $s, $log_id ); -
/** * Fires after the free SMTP abilities are registered, so the PRO add-on can * register its own abilities in the same category. */ do_action( 'dfsmtp_register_abilities', self::CATEGORY ); -
/** * Add-ons render their own settings cards here. */ do_action( 'dfsmtp_settings_page_end', $dfsmtp_s ); -
do_action( 'dfsmtp_activated' ); -
do_action( 'dfsmtp_admin_enqueue', $hook ); -
do_action( 'dfsmtp_deactivated' ); -
apply_filters( 'dfsmtp_is_pro', false );
Generated from DadsFam SMTP's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: