FluentSMTP 2.4.5 has 7 actions and 29 filters, read directly from its source code on Nov 17, 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 FluentSMTP fires an action
add_action( 'wp_mail_failed', function( $error ) {
// Your code runs here.
}, 10, 1 );
// Change a value FluentSMTP is about to use
add_filter( 'fluentsmtp_use_encrypt', function( $value ) {
// Change $value here.
return $value;
}, 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
-
wp_mail_failed
action/** * This filter is documented in wp-includes/pluggable.php */ do_action( 'wp_mail_failed', new WP_Error('wp_mail_failed', $e->getMessage(), $mail_error_data) ); -
fluentsmtp_use_encrypt
filter/** * Get the value of the 'use_encrypt' setting. */ apply_filters( 'fluentsmtp_use_encrypt', 'yes' ); -
phpmailer_init
action/** * Fires after PHPMailer is initialized. */ do_action_ref_array( 'phpmailer_init', array(&$phpmailer) ); -
pre_wp_mail
filter/** * Filters whether to preempt sending an email. */ apply_filters( 'pre_wp_mail', null, $atts ); -
wp_mail
filter/** * Filters the wp_mail() arguments. */ apply_filters( 'wp_mail', compact('to', 'subject', 'message', 'headers', 'attachments', 'embeds') ); -
wp_mail_charset
filter/** * Filters the default wp_mail() charset. */ apply_filters( 'wp_mail_charset', $charset ); -
wp_mail_content_type
filter/** * Filters the wp_mail() content type. */ apply_filters( 'wp_mail_content_type', $content_type ); -
wp_mail_embed_args
filter/** * Filters the arguments for PHPMailer's addEmbeddedImage() method. */ apply_filters( 'wp_mail_embed_args', array( 'path' => $embed_path, 'cid' => (string)$key, 'name' => basename($embed_path), 'encoding' => 'base64', 'type' => '', 'disposition' => 'inline', ) ); -
wp_mail_from
filter/** * Filters the email address to send from. */ apply_filters( 'wp_mail_from', $from_email ); -
wp_mail_from_name
filter/** * Filters the name to associate with the "from" email address. */ apply_filters( 'wp_mail_from_name', $from_name ); -
wp_mail_succeeded
action/** * Fires after a successful email is sent using the wp_mail() function. */ do_action( 'wp_mail_succeeded', $mail_data ); -
do_action( 'fluentmail_email_sending_failed_no_fallback', $logId, $handler, $data ); -
apply_filters( 'fluent_mail_disable_dashboard_widget', false ); -
fluentsmtp_gapi_callback
filterapply_filters( 'fluentsmtp_gapi_callback', 'https://fluentsmtp.com/gapi/' ); -
fluent_mail_loading_app
actiondo_action( 'fluent_mail_loading_app' ); -
apply_filters( 'fluent_mail_ses_primary_domain_only', true ); -
apply_filters( 'fluent_mail/manage_capability', 'manage_options' ); -
do_action( 'fluentmail_connection_health_failed', $newlyFailing ); -
apply_filters( 'fluentmail_connection_health_probe', true, $providerSettings ); -
apply_filters( 'fluentmail_disable_recommendation', false ); -
apply_filters( 'fluentmail_email_sending_failed', $status, $logId, $this, $data ); -
fluentMail_loaded
actiondo_action( 'fluentMail_loaded', $application ); -
apply_filters( 'fluentmail_log_delete_batch_size', 2000 ); -
apply_filters( 'fluentmail_saving_connection_data', $data, $data['connection']['provider'] ); -
apply_filters( 'fluentmail_smtp_bulk_keep_alive', true ); -
fluentmail_will_log_email
filterapply_filters( 'fluentmail_will_log_email', $isLogOn, $miscSettings, $this ); -
apply_filters( 'fluentsmtp_attachment_blocked_paths', $blockedPaths ); -
apply_filters( 'fluentsmtp_disable_from_name_email', false ); -
apply_filters( 'fluentsmtp_max_resend_recipients', 25 ); -
apply_filters( 'fluentsmtp_resend_history_limit', 20 ); -
fluentsmtp_ses_valid_senders
filterapply_filters( 'fluentsmtp_ses_valid_senders', $addresses, $config ); -
fluentsmtp_skip_no_conflict
filterapply_filters( 'fluentsmtp_skip_no_conflict', false ); -
fluentsmtp_smtp2go_api_url
filterapply_filters( 'fluentsmtp_smtp2go_api_url', $url, $region ); -
apply_filters( 'fluentsmtp_smtp2go_fastaccept', true ); -
apply_filters( 'wp_mail_smtp_helpers_crypto_get_secret_key', $secret_key ); -
apply_filters( 'wp_mail_smtp_helpers_crypto_stop', false );
Generated from FluentSMTP's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: