Search code examples
javatwiliosendgrid

Twilio SendGrid emails stuck in processing


I'm trying to integrate Twilio email verification in my application. Here's the code:

 public EmailVerificationDto sendVerificationEmail(String recipient) {
        Verification verification = Verification.creator(
                        PATH_SERVICE_SID,
                        recipient,
                        "email")
                .setChannelConfiguration(
                        new HashMap<>() {{
                            put("template_id", TEMPLATE_ID);
                            put("from", SENDER_EMAIL);
                            put("from_name", "Puggle");
                        }})
                .create();

        return new EmailVerificationDto(
                verification.getTo(),
                verification.getSid(),
                verification.getStatus(),
                verification.getDateCreated().toLocalDate()
        );
    }

I can see the email on the dashboard but it's stuck on processing:

stuck

enter image description here


Solution

  • I got the same problem, seems like SendGrid have problem with people using the service for fraudulent use so you need to get verified first. On the top of the page, you probably have a message saying that you need to get verified. You will need to fill a form, then they will contact you via email to gather some more information and accept or deny your access to the service.