Generating an RFC 2183 compliant email #4612
Unanswered
andrewlmessagepoint
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently generating HTML emails with inlined images. What I'm finding is that another tool downstream does not like the MIME headers that are being generated for image parts. Specifically this tool wants the headers to look like:
Content-ID:
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="image.jpeg"
instead I'm getting
Content-ID:
Content-Type: image/jpeg; name=image.jpeg
Content-Transfer-Encoding: base64
Content-Disposition: inline
As a very simplified version of what I'm doing, the code looks something like:
Is it possible to get the filename= on the Content-Disposition header? Should I be using a different method to put the inlined images into my email? My understand is that what is currently being done by MailMessage::writePart(...) is deprecated. Can anybody provide some insight here? Is there anything I can do that will allow me to generate the headers as I need them?
Beta Was this translation helpful? Give feedback.
All reactions