You should search before posting. GoDaddy blocks outbound SMTP, but they provide a gateway that you can use instead. This blocks many sending scenarios (such as GoDaddy failing SPF checks). MX records have absolutely nothing to do with outbound mail.
You can use PHPMailer with HTTP services like MailGun by using it to construct messages for you. Build your message as you would normally in PHPMailer, then call preSend()
and getSentMIMEMessage()
instead of send()
. You will then have a complete message you can submit to the HTTP API.
solved Send email using PHPMailer, Mailgun and HTTP api