SMTP for internal emails not working

This script will setup phpmailer to use for email…