Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Environments 4:50
- Accessing Environment Variables 3:50
- Environments and Their Variables 5 questions
- Setting up the Project and Package 5:06
- Managing Credentials with Environment Variables 2:39
- Using Environment Specific Settings 4:18
- PHP dotenv Package 5 questions
- Complex Data Types 6:21
- Additional Considerations 5:50
- Learning Environment 0:47
- More Data 5 questions

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
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 up-
emmagx
PHP Development Techdegree Graduate 18,240 Points0 Answers
-
PLUS
Parvez Noor
Courses Plus Student 15,918 Points0 Answers
View all discussions for this video
Related 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