rails I am a beginner.
I'm having trouble with Ruby on Rails Tutorial Chapter 11 11.4 "Mail Sending in Production".
The email from SendGrid will be delivered.
When connecting to the link from Activate in the email,
Cannot access this site .. The server IP address of .herokuapp.com was not found.
DNS_PROBE_FINISHED_NXDOMAIN
It is displayed like.
- Try it
The following article was used as a reference.
https://www.tutorialfor.com/go.php?id=112723
(host = '
production.rb
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method =: smtp
host = '<your heroku app>.herokuapp.com'
config.action_mailer.default_url_options = {host: host}
ActionMailer :: Base.smtp_settings = {
: address =>'smtp.sendgrid.net',
: port =>'587',
: authentication =>: plain,
: user_name =>ENV ['SENDGRID_USERNAME'],
: password =>ENV ['SENDGRID_PASSWORD'],
: domain =>'heroku.com',
: enable_starttls_auto =>true
}
SENDGRID_USERNAME, SENDGRID_PASSWORD part
$heroku config: get SENDGRID_USERNAME
$heroku config: get SENDGRID_PASSWORD
I applied the user_name password that was displayed in, but I fixed it because another error occurred.
* We referenced https://www.tutorialfor.com/go.php?id=74492 .
account_activation.text
Hi<% = @ user.name%>,
Welcome to the Sample App! Click on the link below to activate your account:
<% = edit_account_activation_url (@ user.activation_token, email: @ user.email)%>
In the result of heroku logs,
Process exited with status 127
...
Stopping all processes with SIGTERM
...
Process exited with status 143
There are three parts displayed in red with. Is this related?
I'm in trouble without knowing what the error is.
-
Answer # 1
-
Answer # 2
Link from Activate in email
This and
edit_account_activation_url
Please tell me about this.
Related articles
- ruby on rails - i want to write a rails tutorial test in rspec
- ruby on rails - rails tutorial tests that should pass fail with an error [6th edition]
- ruby on rails - [aws production environment] regarding http error 406
- ruby - [rails 5] i want to send an email to a specific user using action mailer
- ruby on rails - rails tutorial about git config settings
- ruby on rails - i want to be able to send emails from the rails production environment
- ruby on rails - in the rails tutorial (4th edition, chapter 5), the layout of only the login page is broken
- ruby - rails tutorial chapter 13 delete does not work in the test of increasing/decreasing the number of posts with rspec
- ruby on rails - activemodel :: unknownattributeerror in production environment
- ruby on rails - i can't log in to the app in the production environment (the app that was successfully deployed on heroku)
- ruby - rails tutorial chapter 2 (6th edition)
- ruby - rails cannot be started in the production environment when building an ec2 environment
- ruby on rails 6 - rails tutorial chapter 14 about follow, unfollow, following? methods
- ruby on rails - [aws/ec2] when i try to run a rails application in a production environment, an error occurs in the image displa
- ruby on rails 6 - rails tutorial login [remember me] checkbox test
- ruby on rails - bootstap 4 does not work in rails6 production environment
- ruby - i got stuck in chapter 5 of the rails tutorial i want to apply it because applicationhtmlerb is not applied
- ruby on rails 6 - rails tutorial (6th edition, chapter 8, list 833) what is the difference between logged_in? and is_logged_in ?
- ruby - i can't "rails db: create rails_env = production" on aws
- ruby - rails tutorial chapter 4 test fails
- javascript - jquery doesn't work on heroku
- ruby on rails - heroku: how to check the database_url used for regular backup
- [heroku] about the problem that status = 500 is returned only when using a smartphone when logging in to twitter using omniauth
- ruby - about accelerating heroku's rails app
- ruby on rails - i want to erase www on heroku
- ruby on rails - rails tutorial chapter 13 cooperation between heroku and aws s3 region
- ruby - unable to get initial image when using s3 with active storage
- css - background-image is not reflected on heroku
- ruby - rails tutorial chapter 2 (6th edition)
- ruby on rails - "this connection does not protect your privacy"
It was a simple mistake.
Healed after deleting.