最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Confirmation email Contact Form 7

programmeradmin0浏览0评论
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 question

I 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:

  1. I created an additional field "Confirm email"
  2. 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 question

I 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:

  1. I created an additional field "Confirm email"
  2. 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 badges
Add a comment  | 

2 Answers 2

Reset to default 1

Hook 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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论