Hi @iperez_genius,
Thanks for reaching out! As I have checked with our developers, we don’t have any web hooks for the email-sending lifecycle.
Please note that we do not provide support for custom code. However, you should be able to use the following code to implement what you need.
Fires before an email is sent:
/**
* Fires before email sent *
* Allows to hook after all the preparation before the actual sending.
*
* @since 3.3.0
*
* @param MailerAbstract $mailer The Mailer object.
*/
do_action( 'wp_mail_smtp_mailcatcher_send_before', $mailer );
Fires after an email is sent:
/**
* Fires after email sent *
* Allow to perform any actions with the data.
*
* @since 3.5.0
*
* @param MailerAbstract $mailer The Mailer object.
* @param MailCatcherInterface $mailcatcher The MailCatcher object.
*/
do_action( 'wp_mail_smtp_mailcatcher_send_after', $mailer, $this );
I hope this helps. Thanks!
-
This reply was modified 1 year, 1 month ago by
Darshana.