I am struggling with the php mail function so to allow a multipart mime
settings where both the message and any set of attachments can be
allowed.
Teorically, I'd know how to do. I build up my headers and pass them as
the fourth argument of the function mail().
Practically, what happens is that whenever I try to test my script
emailing myself, what appears in the email body are the __cleartext__
headers.
ùMaybe you spot in them something wrong, this is what in an email body
appears (and should not) in cleartext:
==============
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="bound ary1650b42c9440 a87e70180d8f1c 1189b4";
Content-Transfer-Encoding: quoted-printable
This is a MIME encoded message
--boundary1650b42 c9440a87e70180 d8f1c1189b4
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
type your message here
--boundary1650b42 c9440a87e70180 d8f1c1189b4--
============
please note that with
Content-Type: multipart/mixed;
or that with
Content-Transfer-Encoding: 7bit
nothing would change, all would still appear cleartext in the email
body (testing both eudora and outlook).
tia
Alberto
settings where both the message and any set of attachments can be
allowed.
Teorically, I'd know how to do. I build up my headers and pass them as
the fourth argument of the function mail().
Practically, what happens is that whenever I try to test my script
emailing myself, what appears in the email body are the __cleartext__
headers.
ùMaybe you spot in them something wrong, this is what in an email body
appears (and should not) in cleartext:
==============
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="bound ary1650b42c9440 a87e70180d8f1c 1189b4";
Content-Transfer-Encoding: quoted-printable
This is a MIME encoded message
--boundary1650b42 c9440a87e70180 d8f1c1189b4
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
type your message here
--boundary1650b42 c9440a87e70180 d8f1c1189b4--
============
please note that with
Content-Type: multipart/mixed;
or that with
Content-Transfer-Encoding: 7bit
nothing would change, all would still appear cleartext in the email
body (testing both eudora and outlook).
tia
Alberto
Comment