I know there are plenty of you out there who use PunBB, and more that use Gmail, so here you go: Gmail with PunBB.
1. Open up the email.php file, located in the /include folder in your PunBB install.
2. Find this line of code:
if (!($socket = fsockopen($smtp_host, $smtp_port, $errno, $errstr, 15)))
3. Replace it with this:
if (!($socket = fsockopen('ssl://'.$smtp_host, $smtp_port, $errno, $errstr, 15)))
4. Save the email.php file and upload it.
5. Enter your PunBB admin panel, and go to the Options page.
6. Scroll down to the part where it asks you for SMTP info.
Copy the following into the boxes:

7. Done! Just remember to enable SMTP and turn on E-mail Confirmation.
