• Resolved muka.gergely

    (@mukagergely)


    Hi,

    I created an app that uses Awesome Support’s REST API (the app is not yet published). Through this app the user can write a ticket with certain fields, and s/he can then submit it to the WP backend (through the REST API endpoint).

    The ticket is nicely created with all the content, but s/he never receives the “ticket created” confirmation email.

    The endpoint used for submitting tickets (with POST):
    https://www.example.com/wp-json/wpas-api/v1/tickets

    So, the tickets are created through the REST API, but no email is sent out. When I create a ticket on the WP backend (as an admin) the email is sent out correctly.

    I use Post SMTP (https://www.ads-software.com/plugins/post-smtp/) for sending out emails using Gmail as the SMTP server, and also JWT Authentication for WP-API (https://www.ads-software.com/plugins/jwt-authentication-for-wp-rest-api/). With this setup I use JWT for user authentication.

    This is frustrating as this feature is required of me. I started developing this app a while ago (last year), and then there was no problem with this function.

    Versions:
    Wordpress – 5.1.1
    Awesome Support – 5.8.0
    Post SMTP – 1.9.8
    JWT Authentication for WP-API – 1.2.6

    Has anyone an idea what could be the problem and how to solve it?

    • This topic was modified 5 years, 6 months ago by muka.gergely.
  • The topic ‘No email is sent out when creating ticket with REST API’ is closed to new replies.