I have currently set up SendGrid to send me email data to a URL on a Subdomain of my site,
I can't seem to wrap my head around the basic code I need so that I can consume this email data that is being sent.
At the moment SendGrid is just getting 403 errors, I am aware that the URL endpoint needs to be accessible, I am pretty sure that it is, I am also aware that I need some code to consume the data then return a success code or something similar.
All I really need is a small snippet of code as a starting point so that SendGrid stops getting 403 errors, e.g consume data, store in a data structure then return success. This should be quite simple but I for some reason the solution escapes me.
Thanks in advance.