How to debug verification mail sending. I used the...
# _newcomer
w
How to debug verification mail sending. I used the config from the kratos/quickstart.yml . But email doesn't arrive
In kratos jsonnet, how to figure the synatx, to read user profile data . from google/github
For the email, I can see the verification code in debug logs. But can't see anything related to sending an email. I changed the courier to be http: , but the url is not hit at all
Copy code
function(ctx) {
"personalizations": [
    {
      "to": [
        {
          "email": if "TemplateData" in ctx && "To" in ctx.TemplateData then <http://ctx.TemplateData.To|ctx.TemplateData.To> else null)
        }
      ],
     "verificationCode": if "TemplateData" in ctx && "VerificationCode" in ctx.TemplateData then ctx.TemplateData.VerificationCode else null
    }
  ],
}
mail.verify.jsonnet
I figured it. so stupid I am. had to start the watch courier. i was wondering how its gonna process 😄
Message was abandoned because it did not deliver after 6 attempts audience=application message_id=003432b4-b91e-4cb0-bb85-34ae9ffabe1c message_nid=3d070bb9-23ed-4400-84d3-97ffd17743b3 message_subject=Please verify your email address message_template_type=verification_code_valid message_type=email service_name=Ory Kratos service_version=v1.3.1
😞 Life is pain
removed the body thing. works now