I\'m trying to create a custom email header to use the SendGrid api.
Here\'s what I\'m doing - but its not working:
class Mailman < ActionMailer::Ba
The headers method requires valid JSON. So Ricardo's solution requires this line instead:
headers['X-SMTPAPI'] = '{"category": "Drip Email"}'