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

Inlining CSS #206

Closed
retorquere opened this issue Feb 11, 2017 · 2 comments
Closed

Inlining CSS #206

retorquere opened this issue Feb 11, 2017 · 2 comments
Assignees

Comments

@retorquere
Copy link

Should adding options: { inline_css: true }, to the options object be sufficient to inline css? Right now I'm not seeing any inlined CSS; pre-processing the html with https://www.npmjs.com/package/inline-css does the job but I thought SparkPost should be able to do this on my behalf.

@aydrian
Copy link
Contributor

aydrian commented Mar 13, 2017

The option is part of the transmission object which is the first parameter to the send() function. It won't work if you include it in the optional second parameter. You can see the option here which is a sibling to the recipients attribute: https://developers.sparkpost.com/api/transmissions.html#header-options-attributes. The value should be passed directly to the API. If you are still seeing issues, it'd be best to open a support ticket.

@aydrian aydrian self-assigned this Mar 13, 2017
@retorquere
Copy link
Author

Super, works.

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