I tested by adding a user. On first attempt, I got lot of debug info and no email. Viewed source to read the debug message. My username/password failed because I typed the wrong domain. I corrected it and added user again. It's fast. I got an email before the debug info even printed.
Just confirming the script works with WP 3.9.2 MU and gmail with custom domain. Thx Alexander!
Here is my wp-config.php, note the single difference from script default is the port:
below per https://github.com/rohmann/wp-multisite-smtp
define('GLOBAL_SMTP_HOST','smtp.gmail.com'); define('GLOBAL_SMTP_USER','user@mydomain.com'); define('GLOBAL_SMTP_PASSWORD','pa55w0rd'); define('GLOBAL_SMTP_FROM','user@mydomain.com'); define('GLOBAL_SMTP_FROM_NAME','Winston Ford'); define('GLOBAL_SMTP_PORT',465); define('GLOBAL_SMTP_SECURE;','tls'); define('GLOBAL_SMTP_DEBUG',true);
I tested by adding a user. On first attempt, I got lot of debug info and no email. Viewed source to read the debug message. My username/password failed because I typed the wrong domain. I corrected it and added user again. It's fast. I got an email before the debug info even printed.