SMTP connect() failed. · Issue #270 · PHPMailer ... - GitHub
github.com › PHPMailer › PHPMailerAug 31, 2014 · SMTP-related settings are only applicable when using SMTP, including Username, Password, Host, Port, SMTPAuth, SMTPSecure, SMTPDebug and others. GoDaddy blocks outbound mail connections (to gmail and everywhere else), so you need to use GoDaddy's own mail servers, which may include localhost.