Ok I spent hours trying to figure this out but no I give up.
We have a PBX that sends e-mails with voicemail attachments to our email when messages are left. It works fine with no issues at all. In fact all our emailing seems to work fine. We have an SMTP email and the MTA is using that and not PHP.
When a customer calls for service and leaves a voicemail it sends an email to our help desk with the voice mail attached. That part is working perfectly. The ticket opens as expected and the voicemail is attached.
The problem we are having is in that scenario and ONLY that scenario, when the help desk sends us a new ticket alert, its always in Mime format
This is a message in Mime Format. If you see this, your mail reader does not support this format.
--=_5564598b4a74657ddea3be3e05263acd
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64
When a clients sends an email to open a ticket the helpdesk sends us regular ticket alerts.
When the Mime email is sent we also see the helpdesk log has an error:
Unable to email via SMTP: [useremail] (tls://[servername]:587/SMTP) Cannot issue HELO to existing session

Any help would be great. Thanks