This course will be retired on June 1, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Moving credentials is only one part of making your application adaptable. The settings for your application may also need to change based upon the environment.
For Setting up SMTP, check out this video and the corresponding notes.
Environment Variables for Google SMTP
Only difference for yahoo is SMTP_HOST="smtp.mail.yahoo.com"
SMTP_DEBUG=2 SMTP_HOST="smtp.gmail.com" SMTP_PORT=587 SMTP_SECURE="tls" SMTP_AUTH=true SMTP_USERNAME=most_likely_your_email SMTP_PASSWORD=app_password SMTP_FROM=most_likely_your_email MAILTO_EMAIL=most_likely_your_email MAILTO_NAME=any_name
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up