POST request contact form 7 route
-
Hi,
We’re using wp rest api v2 in the website for api and we need to use contact form 7 route
wp-json/contact-form-7/v1/contact-forms/1299
The route is successfully authorized and returning all the properties and their values when we’re trying through GET request in postman.
But when trying to send information through POST request it sends nothing and no error.Here is the properties we are trying in the body tab of postman
properties.mail.recipient: [email protected] properties.mail.subject: Error log of the project properties.mail.sender: Project log properties.mail.body: Take a peak about error log
We also tried by setting a fixed value for “To”, “From”, “Subject” in contact form 7 Mail panel of WordPress dashboard. And send the information in “Message Body” with the parameter called body like this:
properties.mail.body: Take a peak about error log
When we check server log it shows success code for every POST request and no error but we are not getting any email.
We’ve even tried by changing different emails.Please tell me what is the best possible way to send POST request for Contact form 7 routes.
Thanks for your help.
- The topic ‘POST request contact form 7 route’ is closed to new replies.