Hi @cogz
I hope you are doing well.
Do you mean like a thank you email?
If so, yes, you can configure it on Forminator > Form > Email Notifications
Create your message:
https://monosnap.com/file/7WHY4UVzwHgzIM9o7Fa2GuEBI2CWra
And add the email field to make it dynamically
https://monosnap.com/file/GW3JZrbGS6I0dN5G5tznx3WFzkXijV
To find more about email notification:
https://monosnap.com/file/GW3JZrbGS6I0dN5G5tznx3WFzkXijV
Let us know if you have any additional question.
Best Regards
Patrick Freitas
Thread Starter
cogz
(@cogz)
Hi Patrick,
This sends a HTML message. I am trying to send a text only message.
Thank you
Hi @cogz
Thank you for the information.
In this case, we need a custom code:
<?php
function forminator_strip_html_from_email( $front_mail, $custom_form, $data, $entry ) {
if((int)$custom_form->id === 1888 ){
add_filter(
'wp_mail',
function( $args ){
remove_filter( 'forminator_custom_form_mail_before_send_mail', 'forminator_strip_html_from_email', 9 );
$args[ 'message' ] = wp_strip_all_tags( $args[ 'message' ] );
return $args;
}
);
}
}
add_filter( 'forminator_custom_form_mail_before_send_mail', 'forminator_strip_html_from_email', 9, 4 );
Replace the Form ID using your form ID:
https://monosnap.com/file/hgwUhrvY4CWnXfXoz2CLbEn8IXmqz3
You can install the code as a mu-plugin:
https://premium.wpmudev.org/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins
Let us know if this is what you are looking for,
Best Regards
Patrick Freitas
Hello @cogz ,
We haven’t heard from you for a while now, so it looks like code above was helpful.
Please feel free to re-open this ticket if needed.
kind regards,
Kasia