-
Notifications
You must be signed in to change notification settings - Fork 322
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
Substitutions in a template #58
Comments
You could use like describe here too https://github.com/sendgrid/sendgrid-ruby#working-with-templates |
Thank you for your response @gurgelrenan But in that API, after creating Recipients, Template and Client, the document says that you have to set the HTML while creating the TemplateMailer.
This is what threw me off. Why set HTML when the |
Yeah, for me look strange too, but I have searched and I found this approach:
Put HTML and Text with a |
Thanks @gurgelrenan |
…odeclimate [Closes sendgrid#55] Add code coverage reporting to CC
Question:
To substitute parameters, like -first_name-, -last_name-, etc, the only option is to use SMTP API as specified here(using-sendgrids-x-smtpapi-header). Is that correct?
I did not see any option to set substitutions directly on the Sendgrid::Mail object.
The text was updated successfully, but these errors were encountered: