Email - Sending Email

You can send emails to any contact by making a POST  HTTP  request to /emails/send/ endpoint. It requires a two-argument while making a request. make sure to  insert  appropriate headers before making a  request .

id_or_email: The ID or email address of the user whom you want to send an  email .
email_id :  The ID of email which you want to send to the contact.

You can also perform this operation by setting “id_or_email” to the user id of a user and passing by_user_id = true. It will send an email to the user with a passed user id.

http://yoursite.com/wp-json/gh/v3/emails/send?id_or_email=2&email_id=1

This request send emails to contact and returns the following response from the server.

{
    "code": "success",
    "message": "Email sent successfully to contact."
}
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us