Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

don't send mail confirmation #229

Open
Sambuca85 opened this issue Aug 11, 2014 · 1 comment
Open

don't send mail confirmation #229

Sambuca85 opened this issue Aug 11, 2014 · 1 comment

Comments

@Sambuca85
Copy link

i've installed in my vps but don't send mail confirmation...

@shyammohankanojia
Copy link

You sould setup emial method.
Sample example using gamil smtp

File config/environments/production.rb to look like this:

config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: "example.com",
authentication: "plain",
enable_starttls_auto: true,
user_name: ENV["GMAIL_USERNAME"],
password: ENV["GMAIL_PASSWORD"]
}

You can replace ENV["GMAIL_USERNAME"] and ENV["GMAIL_PASSWORD"] with your Gmail username and password. However, committing the file to a public GitHub repository will expose your secret password. See the article Rails Environment Variables to learn how to set local environment variables to keep email account passwords secret.

You can use https://github.com/stephenb/sendgrid
https://sendgrid.com/docs/Integrate/Frameworks/rubyonrails.html

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

No branches or pull requests

2 participants