I have an issue with processing inbound emails sent from MS Outlook. To put it simple no attachments are received in the class (nor text nor binary). Email definitely has attachments since i cc-ed the email to my gmail account.
If the email with attachment is sent from the gmail account everything works well.
Any thoughts or experiences?
the code:
global Messaging.InboundEmailResult handleInboundEmail(Messaging.inboundEmail email, Messaging.InboundEnvelope env)
{
System.debug(email);//no attachments all attachment binary and text are null
....}
I think this source could be more important:
Gmail source:
Content-Type: text/csv; charset=UTF-8; name="Karol_csv_short.csv"
Content-Disposition: attachment; filename="Karol_csv_short.csv"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_hytz9oxg0
Outlook source
Content-Type: application/vnd.ms-excel; name="Karol_csv_short.csv"
Content-Disposition: attachment; filename="Karol_csv_short.csv"
Content-Transfer-Encoding: base64
X-Attachment-Id: 1cad76b11d272e29_0.1
So the issue could be that the application/vnd.ms-excel content type is not understood by salesforce?
Thanks