Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Non-X-SMTPAPI Headers #43

Closed
jrpolidario opened this issue Mar 3, 2016 · 1 comment
Closed

Add support for Non-X-SMTPAPI Headers #43

jrpolidario opened this issue Mar 3, 2016 · 1 comment

Comments

@jrpolidario
Copy link

From API docs, there is support for headers.

My scenario required me to have both X-SMTPAPI's unique_args header, and Non-X-SMTPAPI custom header.

I could not find any way to add Non-X-SMTPAPI headers from either README.md nor from the source code, because there is no attr_accessor :headers

From what I understand, this will entail merging both Sendgrid::Mail @smtpapi and @headers in the source code.

@thinkingserious
Copy link
Contributor

Hello @jrpolidario,

This is no longer an issue in the new version of this library, which comes out of beta in a few weeks. You can check it out here: https://github.com/sendgrid/sendgrid-ruby/tree/v3beta

The new version uses the v3 /mail/send endpoint: https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html which includes the X-SMTPAPI settings and the new library supports the addition of your own custom headings.

Thanks for your support!

With Best Regards,

Elmer

jamietanna pushed a commit to jamietanna/sendgrid-ruby that referenced this issue Oct 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants