function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
warrenlesterwarrenlester 

Inbound email MIME decoding / Quoted-Printable

Does anyone have any simple ways of decoding quoted-printable emails within an Apex class.

 

Some emails that we receive are in the form:

 

 This is a multi-part message in MIME format. ------_=_NextPart_001_01C9D327.CEE8F1C3Content-Type: text/plain;      charset="us-ascii"Content-Transfer-Encoding: quoted-printable 

*1X4=20Z68F=20MFD7=20QYBZ

 

=20

 

=20

 

Some, are not depending on the mail client.

 

Thanks in advance,

 

Warren

fgwarb_devfgwarb_dev

Did you ever resolve this issue?  I'm dealing with an external system whose email attachments aren't being recognized as SFDC as an attachment.

 

The MIME encoded content of the attachment are in the email object's plaintext body.  I can fight with the external system's developers and administrators to format their email correctly, but it would be much faster if I could just fix it myself inside SFDC by MIME decoding the content.