Вариант 1.
report name: super_long_and_super_descriptive_file_name_with_a_lot_of_information_about_the_content_of_the_report_and_other_useless_stuff_there_123.pdf
Один получатель в gmail видит полное имя репорта. Другой получатель в outlook видит "CompanyName.dat". В оригинальном тексте сообщения аттачмент описан вот так:
Code: Select all
------=_Part_16266_1154935258.1541522589132
Content-Type: application/octet-stream; name="super_long_and_super_descriptive_file_name_with_a_lot_of_information_about_the_content_of_the_report_and_other_useless_stuff_there_123.pdf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="super_long_and_super_descriptive_file_name_with_a_lot_of_information_about_the_content_of_the_report_and_other_useless_stuff_there_123.pdf"
Content-Description: CompanyName
------=_Part_16266_1154935258.1541522589132--
Code: Select all
--0000000000000b209f057a01aac2
Content-Type: application/pdf; name="super_long_and_super_descriptive_file_name_with_a_lot_of_information_about_the_content_of_the_report_and_other_useless_stuff_there_123.pdf"
Content-Disposition: attachment; filename="super_long_and_super_descriptive_file_name_with_a_lot_of_information_about_the_content_of_the_report_and_other_useless_stuff_there_123.pdf"
Content-Transfer-Encoding: base64
Content-ID: <166e9e52241b345aafe1>
X-Attachment-Id: 166e9e52241b345aafe1
--0000000000000b209f057a01aac2--
report name: CompanyName.pdf
Оба получателя и в gmail и в аутлуке видят CompanyName.pdf.
Code: Select all
------=_Part_16303_1911088317.1541523368281
Content-Type: application/octet-stream; name=CompanyName.pdf
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=CompanyName.pdf
Content-Description: CompanyName
------=_Part_16303_1911088317.1541523368281—