Hi .i use SMTP lib.
Sending a message with an attached PDF file . In the mailbox I get the message with the PDF file encoded in base 64 and unreadable
I think is the wrong Content- Type. Is it possible to force the Content-Type right?
See the example below:
***************************************************
This is a boby and is OK
***************************************************
--asdasdwdwqd__HV_qwdqwdddwq
Content-Type: text/plain; charset="utf-8"
Invio rapporto BM2 nr 46 del 25/05/2015
Terminale: 002
Codice tecnico: 02(Palmare02)
Intervento eseguito presso:
FERRARI S.R.L.
VIA GRANDI,29
RA RAVENNA 48123
In allegato è presente il rapporto nel formato PDF
***************************************************
This is a PDF attachment encoded to base64
***************************************************
--asdasdwdwqd__HV_qwdqwdddwq
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="rap_BM2_46_20150525.pdf"
JVBERi0xLjQKJam7qrUKMSAwIG9iago8PAogIC9UeXBlIC9DYXRhbG9nCiAgL1BhZ2VzIDIgMCBS
Cj4+CmVuZG9iagoKMiAwIG9iago8PAogIC9UeXBlIC9QYWdlcwogIC9NZWRpYUJveCBbIDAgMCA1
OTUgODQyIF0KICAvQ291bnQgMQogIC9LaWRzIFsgMyAwIFIgXQo+PgplbmRvYmoKCjMgMCBvYmoK
PDwKICAvVHlwZSAvUGFnZQogIC9QYXJlbnQgMiAwIFIKICAvUmVzb3VyY2VzIDw8CiAgICAvRm9u
dCA8PAogICAgICAvRjEgNCAwIFIKICAgICAgL0YyIDYgMCBSCiAgICAgIC9GMyA3IDAgUgogICAg
Pj4KICAgIC9YT2JqZWN0IDw8CiAgICAgIC9pbWczIDggMCBSCiAgICAgIC9pbWc0IDkgMCBSCiAg
Sending a message with an attached PDF file . In the mailbox I get the message with the PDF file encoded in base 64 and unreadable
I think is the wrong Content- Type. Is it possible to force the Content-Type right?
See the example below:
***************************************************
This is a boby and is OK
***************************************************
--asdasdwdwqd__HV_qwdqwdddwq
Content-Type: text/plain; charset="utf-8"
Invio rapporto BM2 nr 46 del 25/05/2015
Terminale: 002
Codice tecnico: 02(Palmare02)
Intervento eseguito presso:
FERRARI S.R.L.
VIA GRANDI,29
RA RAVENNA 48123
In allegato è presente il rapporto nel formato PDF
***************************************************
This is a PDF attachment encoded to base64
***************************************************
--asdasdwdwqd__HV_qwdqwdddwq
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="rap_BM2_46_20150525.pdf"
JVBERi0xLjQKJam7qrUKMSAwIG9iago8PAogIC9UeXBlIC9DYXRhbG9nCiAgL1BhZ2VzIDIgMCBS
Cj4+CmVuZG9iagoKMiAwIG9iago8PAogIC9UeXBlIC9QYWdlcwogIC9NZWRpYUJveCBbIDAgMCA1
OTUgODQyIF0KICAvQ291bnQgMQogIC9LaWRzIFsgMyAwIFIgXQo+PgplbmRvYmoKCjMgMCBvYmoK
PDwKICAvVHlwZSAvUGFnZQogIC9QYXJlbnQgMiAwIFIKICAvUmVzb3VyY2VzIDw8CiAgICAvRm9u
dCA8PAogICAgICAvRjEgNCAwIFIKICAgICAgL0YyIDYgMCBSCiAgICAgIC9GMyA3IDAgUgogICAg
Pj4KICAgIC9YT2JqZWN0IDw8CiAgICAgIC9pbWczIDggMCBSCiAgICAgIC9pbWc0IDkgMCBSCiAg