You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Those are passed in the sendgrid smtp headers defined in X_mailer.rb as an array of strings. The format you define the placeholders in your email content should match the substitution tag's key. So ":name" wouldn't work if your headers had "%name%"
headers "X-SMTPAPI" => {
"sub": {
":name" => [user.name],
":number" => [amount]
}.to_json
# the 'to' email can be overridden per action
mail(
from: 'test@test.com',
to: 'recipient@test.com',
subject: "Hello World"
)
In transactional email
how to pass the variables
:number
,:name
??thanks,
The text was updated successfully, but these errors were encountered: