Skip to content
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

Mailer Settings and Documentation Updates #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zysim
Copy link
Collaborator

@zysim zysim commented Aug 22, 2018

Commit messages should speak for themselves. Please message me if you need me to clarify anything. It's three in the morning I'm tired peace

------
Set the ActionMailer parameters for both `production.rb` and
`development.rb` to pull the email address and password from environment
variables.
------
First off, server_deploy.md was separated with a comma, not a period.
Secondly, I've changed the language a little in both, in hopes of
streamlining what we are talking about.
@Nanoseb
Copy link
Member

Nanoseb commented Aug 23, 2018

I am really not an expert, but it looks all right to me.

@Nanoseb
Copy link
Member

Nanoseb commented Aug 23, 2018

If you are happy with it and it blocks you from going further, I think you can merge it.

@@ -43,4 +43,12 @@
config.action_mailer.default_url_options = { :host => "localhost:3000" }
config.action_mailer.delivery_method = :letter_opener
config.action_mailer.perform_deliveries = true
config.action_mailer.smtp_settings = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this. As in @kirs 's idea, the email will be previewed in a html page.


export RAILS_ENV=production
# Generate a SECRET_TOKEN; `rake secret` can generate one
export SECRET_TOKEN=<SECRET_TOKEN>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where SECRET_TOEKN is used?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants