PLATFORM-211: updated sendgrid postback script