Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 4 years ago.
Improve this questionI use the Contact Form 7 plugin on my site, now I have a task to send a confirmation email after sending the data. But I can not find in the documentation how to do this without creating an extra field.
My solution:
- I created an additional field "Confirm email"
- In the plugin settings, turned on Mail (2) and configured so that the email was sent
everything works perfectly. But is it possible to make it so that without an additional field sends a email? with different text?
"Thanks for your reply"
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 4 years ago.
Improve this questionI use the Contact Form 7 plugin on my site, now I have a task to send a confirmation email after sending the data. But I can not find in the documentation how to do this without creating an extra field.
My solution:
- I created an additional field "Confirm email"
- In the plugin settings, turned on Mail (2) and configured so that the email was sent
everything works perfectly. But is it possible to make it so that without an additional field sends a email? with different text?
"Thanks for your reply"
Share Improve this question edited Jun 8, 2020 at 10:13 Juan Cullen 31 bronze badge asked Jun 8, 2020 at 10:08 BavariusBavarius 1014 bronze badges2 Answers
Reset to default 1Hook into wpcf7_mail_sent
action, it fires after the mail is successfully sent.
function wpse_368498_cf7_mail_sent( $contact_form ) {
//Your confirmation code here
}
add_action( 'wpcf7_mail_sent', 'wpse_368498_cf7_mail_sent' );
You could redirect to another URL after the form is submitted. See: https://contactform7/redirecting-to-another-url-after-submissions/
Here, you could run your own custom script that sends out a custom email.