jay
jay

Reputation: 12495

Secure use of gmail and heroku

On this post here: ROR send email heroku, gmail it there is information on how to set up gmail with a heroku app. However, storing your gmail password as a plain text (see the question) is, I think, insecure. Does anyone know if one can use gmail with a heroku app with a FIX for this security?

Upvotes: 4

Views: 1000

Answers (1)

Will
Will

Reputation: 2961

Store it in an environment varaible with heroku config:add GMAIL_USER=name and GMAIL_PASSWORD=password, then pull them out with ENV['GMAIL_USER'] etc.

http://devcenter.heroku.com/articles/config-vars

Upvotes: 6

Related Questions