phpstorm settings
Add Mail.php dependency
Sample of sending email using gmail SMTP server.