Skip to content

Commit

Permalink
feat: Add tags and custom headers (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
drish authored Dec 15, 2024
1 parent 63c4ea4 commit ec85cd1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ gem "sqlite3", "~> 1.4"
# Use the Puma web server [https://github.com/puma/puma]
gem "puma", "~> 5.6"

gem "resend"
gem "resend", "0.15.0"

# Build JSON APIs with ease [https://github.com/rails/jbuilder]
# gem "jbuilder"
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ GEM
coderay (1.1.3)
concurrent-ruby (1.3.4)
crass (1.0.6)
csv (0.1.0)
csv (3.3.1)
date (3.3.4)
debug (1.9.1)
irb (~> 1.10)
Expand Down Expand Up @@ -166,7 +166,7 @@ GEM
psych (>= 4.0.0)
reline (0.4.2)
io-console (~> 0.5)
resend (0.14.0)
resend (0.15.0)
httparty (>= 0.21.0)
sqlite3 (1.7.3-arm64-darwin)
sqlite3 (1.7.3-x86_64-darwin)
Expand All @@ -192,7 +192,7 @@ DEPENDENCIES
pry
puma (~> 5.6)
rails (~> 7.0.0)
resend
resend (= 0.15.0)
sqlite3 (~> 1.4)
tzinfo-data

Expand Down
6 changes: 6 additions & 0 deletions app/mailers/user_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ def welcome_email
to: ["[email protected]"],
reply_to: "[email protected]",
subject: "Hello from Rails",
tags: {
"name": "category", "value": "confirm_email"
},
headers: {
"X-Entity-Ref-ID": "123"
},
)
end
end

0 comments on commit ec85cd1

Please sign in to comment.