emails: fix sendgrid payload parsing

Signed-off-by: diditclear <didyourupgradeclear@gmail.com>