-
Notifications
You must be signed in to change notification settings - Fork 0
Implement postmark #28
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
base: develop
Are you sure you want to change the base?
Conversation
…to development & prod. Added unit test
added to .gitignore for future
… into feature/implement_postmark
mail( | ||
to: notification.email, | ||
subject: "Arrons blog has been updated!", | ||
from: "arron.fletcher@shiftcommerce.com", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change this to a personal email address
config.action_mailer.default_url_options = { host: "localhost:4000" } | ||
config.action_mailer.asset_host = "http://localhost:4000" | ||
config.action_mailer.default_url_options = { host: ENV.fetch("MAILER_HOST") } | ||
config.action_mailer.asset_host = ENV.fetch("MAILER_HOST") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove all this stuff from application.rb
as you are defining them in development.rb and production.rb already
The scope of this PR is to:
Implement Postmark for delivering SMTP emails and use environment variables for sensitive credentials.
Add Tests
Related Issue: #15