Skip to content

Commit

Permalink
Add Resend
Browse files Browse the repository at this point in the history
  • Loading branch information
IanMitchell committed Mar 18, 2024
1 parent 1f9f0c4 commit a80adb6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ gem "aws-sdk-s3", require: false

gem 'acts_as_list'

gem "resend"

# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'

Expand Down
12 changes: 2 additions & 10 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,8 @@
# Devise Emails
config.action_mailer.default_url_options = { host: 'deschtimes.com' }

# Sendgrid Configuration
ActionMailer::Base.smtp_settings = {
:user_name => 'apikey',
:password => ENV['SENDGRID_API_KEY'],
:domain => 'deschtimes.com',
:address => 'smtp.sendgrid.net',
:port => 587,
:authentication => :plain,
:enable_starttls_auto => true
}
# Resend Configuration
config.action_mailer.delivery_method = :resend

# Active Storage links for Webhooks
Rails.application.routes.default_url_options[:host] = 'deschtimes.com'
Expand Down
1 change: 1 addition & 0 deletions config/initializers/resend.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Resend.api_key = ENV['RESEND_API_KEY']

0 comments on commit a80adb6

Please sign in to comment.