Developer
Hooks
This category contains the available hooks that are available to developers within Gravity SMTP in order to extend its functionality.
Constants
This category contains a list of the constants that can be set within the wp-config.php file of your WordPress installation.
Articles
GRAVITYSMTP_INTEGRATION_BACKUP
For advanced configurations and multisite setups, you can define a Backup integration for Gravity SMTP using constants.
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.
Using Constants To Hide Your Sensitive Settings
By using constants in your site’s wp-config.php file, you can securely store this information outside the WordPress admin interface.
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_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_feature_flag
The gravitysmtp_feature_flag allows developers to disable features in Gravity SMTP.
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_connector_for_sending
This gravitysmtp_connector_for_sending filter lets you dynamically choose which SMTP connector should handle a specific email.
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_sparkpost_send_as_transactional
This filter allows you to control whether emails sent through SparkPost are marked as transactional. It lets you override the default behavior of sending emails as transactional messages.