Answer the question
In order to leave comments, you need to log in
How to auto send coupon after filling out Contact Form 7?
How can I automatically send a unique generated coupon in a user notification after the user has completed and submitted the Contact Form 7 ?
That is, if the user fills out the form, then a unique discount coupon is sent to his mail.
Answer the question
In order to leave comments, you need to log in
1) Hang the handler on the CF7 button - https://contactform7.com/2017/06/07/on-sent-ok-is-...
2) Add extra. cf7 button handler using js and use the wp_mail() function to send the email.
But how exactly this coupon should be generated, see for yourself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question