Build SendGrid X-SMTPAPI headers in Ruby.