gregorybat
New Member
I'm trying to implement this script:Send PHP HTML mail with attachmentsThe only thing I've modified in the script was the send-to address and the file. I'm trying to attach an \[code\].mp3\[/code\] file instead of a \[code\].zip\[/code\] file - maybe this is the reason I'm getting unexpected results?The \[code\].mp3\[/code\] file is only 31kbBut when I receive the email, there is no attachment and no HTML formatting in the message.The email message contains:\[code\]--PHP-mixed-a80d597fc7c02e67ff5be867c7a48babContent-Type: multipart/alternative; boundary="PHP-alt-a80d597fc7c02e67ff5be867c7a48bab"--PHP-alt-a80d597fc7c02e67ff5be867c7a48babContent-Type: text/plain; charset="iso-8859-1"Content-Transfer-Encoding: 7bitHello World!!!This is simple text email message.--PHP-alt-a80d597fc7c02e67ff5be867c7a48babContent-Type: text/html; charset="iso-8859-1"Content-Transfer-Encoding: 7bit<h2>Hello World!</h2><p>This is something with <b>HTML</b> formatting.</p>--PHP-alt-a80d597fc7c02e67ff5be867c7a48bab----PHP-mixed-a80d597fc7c02e67ff5be867c7a48babContent-Type: application/zip; name="attachment.zip"Content-Transfer-Encoding: base64Content-Disposition: attachmentSUQzAwAAAAABIVRQRTEAAAAfAAAB//5DAGgAZQBlAHMAZQBDA.....\[/code\]