• Resolved intellywp

    (@intellywp)


    Hi,
    I’m using your plugin to send emails.
    I’ve coded a wrapper because of my needs that does some stuff and then calls wp_mail (overwritten by your plugin) to send the email.

    Actually the response is always “Message success” or something similar even if the email has been bounced or does not exist.

    Is there a way to find what happened to that email through your plugin? (Ex. bounced).

    PS: Of course I mean that I need the “bounced” message as a response in my php code so I can show an error to the users.

    • This topic was modified 7 years, 3 months ago by intellywp.
    • This topic was modified 7 years, 3 months ago by intellywp.
    • This topic was modified 7 years, 3 months ago by intellywp.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Anonymous User 12640152

    (@anonymized-12640152)

    Hello

    Unfortunately we cannot know of bounce events when we receive an API call, only when the email is processed on the SendGrid side. Hence API calls and the wp_mail function will not receive an error when sending the email. You can check for bounces afterwards in the Email Activity page of your SendGrid Dashboard.

    Another way to get bounces is using the API: https://sendgrid.com/docs/API_Reference/Web_API/bounces.html However this functionality is not implemented in our plugin.

    Or you can register an Event Webhook and be notified of bounce events. More details here: https://sendgrid.com/docs/API_Reference/Webhooks/event.html

    Thank you,
    SendGrid

    Thread Starter intellywp

    (@intellywp)

    Hi and thanks for the response, I’ll go for the API.
    Just another question:
    How long it would take to know if the email has been bounced? Because I would like to make the API call right after the email has been sent.

    Thank you,
    Thomas

    Anonymous User 12640152

    (@anonymized-12640152)

    Hello.

    Hard bounces occur right away, soft bounces might occur after 3 days. For further assistance please contact directly SendGrid Support through support.sendgrid.com.

    Thank you,
    SendGrid

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get email sent response’ is closed to new replies.