• Resolved lenkorichard

    (@lenkorichard)


    Hi dear devs!

    I’m using WordPress in a headless mode with a Gatsby frontend. Is there a way to use your plugin through the WordPress rest API?
    If not, can you provide a little help on how to create an API endpoint for your plugin? – if that’s even possible.

    Thanks for all the help!
    Richard.

Viewing 1 replies (of 1 total)
  • Plugin Author Gregor Capuder

    (@capuderg)

    Hi Richard,

    no, we currently don’t have any WP REST API endpoints and we also don’t have any short-term plans to add them. I will add your feature request to our list and it might be considered in future plugin planning.

    You could probably create a simple WP REST API endpoint yourself, and just use the wp_mail function to send the email. Our plugin hooks into that function and sends the email with the configured mailer. You should be careful with security for this endpoint so that the emails are not sent from everywhere (a spammer could exploit this endpoint if it’s not secured properly).

    Have a nice day!

Viewing 1 replies (of 1 total)

The topic ‘Sending emails through rest api post?’ is closed to new replies.