Hooks

Articles

gravitysmtp_abort_email_suppression

The gravitysmtp_abort_email_suppression filter prevents developers from adding an email to the suppression list.

gravitysmtp_after_email_suppressed

Fires after an email has been successfully suppressed in the Gravity SMTP suppression list. The gravitysmtp_after_email_suppressed action allows you to perform custom logic after adding an email to the suppression database.

gravitysmtp_attachment_uploads_dir_path

The gravitysmtp_attachment_uploads_dir_path filter lets you customize the directory path where Gravity SMTP saves email attachments.

gravitysmtp_before_email_send

Fires before an email is sent through Gravity SMTP. This action allows you to perform custom logic before the email sending process begins.

gravitysmtp_connector_for_sending

This gravitysmtp_connector_for_sending filter lets you dynamically choose which SMTP connector should handle a specific email.

gravitysmtp_delete_log_on_deactivate

The gravitysmtp_delete_log_on_deactivate filter allows developers to control whether the debug log should be deleted when debug logging is disabled.

gravitysmtp_feature_flag

The gravitysmtp_feature_flag allows developers to disable features in Gravity SMTP.

gravitysmtp_managed_email_types

The gravitysmtp_managed_email_types allows developers to modify or extend the list of managed email types by adding their own custom types.

gravitysmtp_notifications_email_digest_frequency_options

The gravitysmtp_notifications_email_digest_frequency_options filter lets developers customize the available frequency options for the email activity digest.

gravitysmtp_on_send_failure

The gravitysmtp_on_send_failure action allows you to perform custom logic when email sending fails, such as logging, notifications, or cleanup operations.