af/email/before_send

Triggered before an email is sent.

<?php

function before_email_send( $email, $form ) {
    // Do something with email
}
add_action( 'af/email/before_send', 'before_email_send', 10, 2 );
add_action( 'af/email/before_send/id=FORM_ID', 'before_email_send', 10, 2 );
add_action( 'af/email/before_send/key=FORM_KEY', 'before_email_send', 10, 2 );