A little update to those who are reading this tutorial in 2019.
Below command does not work in setting in config anymore.
firebase functions:config:set gmail.email="myusername@gmail.com" gmail.password="secretpassword"
Use it without quotation marks like this instead and it should be fine.
firebase functions:config:set gmail.email=myusername@gmail.com gmail.password=secretpassword