Hi All,
I am new to PHP but I have to do a coursework: developing PHP email application.
I am having problems with the attachment part. The code seems to be working but displays the attachment in the message body in a weird format:
//message body starts
boundary="==Multipart_Boundary_x22107cafc856a68ba80ff666963b34edx"
This is a multi-part message in MIME format.
--==Multipart_Boundary_x22107cafc856a68ba80ff666963b34edx
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
From:
--==Multipart_Boundary_x22107cafc856a68ba80ff666963b34edx
Content-Type: application/msword;
name="companies_dissertation.doc"
Content-Disposition: attachment;
filename=""
Content-Transfer-Encoding: base64
0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAKgAAAAAAAAAA
EAAALAAAAAEAAAD+////AAAAACkAAAD/////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////s
pcEANUAJBAAA+BK/AAAAAAAAMAAAAAAABgAAqAkAAA4AYmpias8yzzIAAAAAAAAAAAAAAAAAAAAA
AAAOBBYALhAAAK1YAACtWAAAqAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//w8AAAAA
AAAAAAD//w8AAAAAAAAAAAD//w8AAAAAAAAAAAAAAAAAAAAAAIgAAAAAABoCAAAAAAAAGgIAABoC
AAAAAAAAGgIAAAAAAAAaAgAAAAAAABoCAAAAAAAAGgIAABQAAAAAAAAAAAAAAC4CAAAAAAAAtgUA
...
--==Multipart_Boundary_x22107cafc856a68ba80ff666963b34edx--
//message ends
Could anyone help me, please?
Cheers
cycleFun