This documentation page is for Quform version 1 and may not be applicable for Quform 2 click here to visit the documentation for Quform 2.
This hook is run before sending the autoreply email.
iphorm_pre_send_autoreply_email
This hook is run for all forms.
Example
1 2 3 4 5 6 7 8 | function my_pre_send_autoreply_email($mailer, $form, $attachments) { // Custom code // You must return the $mailer object return $mailer; } add_filter('iphorm_pre_send_autoreply_email', 'my_pre_send_autoreply_email', 10, 3); |
function my_pre_send_autoreply_email($mailer, $form, $attachments) { // Custom code // You must return the $mailer object return $mailer; } add_filter('iphorm_pre_send_autoreply_email', 'my_pre_send_autoreply_email', 10, 3);
Parameters
- $mailer – the PHPMailer instance
- $form – the iPhorm instance
- $attachments – an array of the email attachments
Accessing form data
iphorm_pre_send_autoreply_email_X
This hook is run for a single form, replace X with the form ID.
Example
1 2 3 4 5 6 7 8 | function my_pre_send_autoreply_email($mailer, $form, $attachments) { // Custom code // You must return the $mailer object return $mailer; } add_filter('iphorm_pre_send_autoreply_email_1', 'my_pre_send_autoreply_email', 10, 3); |
function my_pre_send_autoreply_email($mailer, $form, $attachments) { // Custom code // You must return the $mailer object return $mailer; } add_filter('iphorm_pre_send_autoreply_email_1', 'my_pre_send_autoreply_email', 10, 3);
Parameters
- $mailer – the PHPMailer instance
- $form – the iPhorm instance
- $attachments – an array of the email attachments
Accessing form data
Other guides using this hook
- Attaching a file to the autoreply email
- Adding BCC recipients to the autoreply email
- Customizing the autoreply email content
- Autoreply content the same as default notification email
- More than one Autoreply recipient