At some point you would like your wordpress website to be able to send email. You’ll need it for:
- Password recovery
- “New User” notifications
- Contact forms
By putting this code in your funtions.php file off your child-theme, you won’t need a plugin to configure the gmail settings.
Without this code you also could use a plugin for the same thing, but who needs plugins 😛