-
Clone app
-
run
bundle install
-
run
rake db:create
-
open
application.rb
and update smtp_settings configconfig.action_mailer.smtp_settings = { address: 'smtp.gmail.com', port: 587, user_name: '<username>', password: '<password>', authentication: 'plain', enable_starttls_auto: true }
Replace
<username>
with your Gmail account addressReplace
<password>
with the password of the email you specified above. -
Open
app/mailers/application_mailer.rb
and replace'from@example.com'
with the email address you specified in step 4 -
Start server
rails s
-
Send email notifications by making a post request to
http://localhost:3000/notifications
{ "notification": { "content": "hello world", "recipients": ["your-email@gmail.com"] } }
-
Notifications
You must be signed in to change notification settings - Fork 0
This is the demo app for the medium post that I made (https://medium.com/@giddykim/sending-emails-in-rails-with-sucker-punch-gem-part-1-76b501ad943f)
gr1d99/notifications_app
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This is the demo app for the medium post that I made (https://medium.com/@giddykim/sending-emails-in-rails-with-sucker-punch-gem-part-1-76b501ad943f)
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published