Zum Inhalt springen

Mailform Attachment ohne Semicolon bei content-type

Erstellt am 18. Oktober 2012 · Noch keine Antworten

Tags: E-Mail-Versand, Frage

tralala ·

Hallo,

ich habe ein einfaches Formular erstellt und will es mit Dateianhang per mail verschicken.
Beim Empfänger kommt es nicht an, weil der Mailserver meckert, dass bei Content-Type das Semicolon nicht da ist (s. Beispiel).
Weiss jemand, wo im Programm-Code das Semicolon gesetzt werden kann?

Falsch:
------------part_1_507bd16d0eb94
Content-Type:
application/octet-stream
name="beispiel.docx"
Content-Disposition:
attachment;
filename="bespiel.docx"
Content-Transfer-Encoding:
base64

Richtig:
------------part_1_507bd16d0eb94
Content-Type:
application/octet-stream;
name="beispiel.docx"
Content-Disposition:
attachment;
filename="bespiel.docx"
Content-Transfer-Encoding:
base64