Are you running Gallery2 to host all your pictures? Are you trying to enable e-mail support via google mail? It's not working, huh?
Well... there's a way to allow users use Gallery2 to send emails via gmail. Here's how:
1) On your server, navigate to the gallery2_root/lib/smtp (in my case gallery2_root is /srv/websites/gallery2)
2) Open smtp.php for editing
3) Find line that states:
and replace it with:
4) Save your file and exit editor.
Now that all the editing is out of the way, you can log in to your gallery and configure your email settings. For GMail they are as follows:
Login: email@example.com (or if you are using google apps your_email@your_domain)
Password: Your password