• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/
  • On Plesk for Linux mod_status is disabled on upgrades to improve Apache security.
    This is a one-time operation that occurs during an upgrade. You can manually enable mod_status later if needed.

php mail attachments

G

got-hosting

Guest
Hi all

I am a little new to plesk, so be gentle. :)

I had a client today complain that he cannot send mail with attachments in php. I did what most of us do, we automatically blame the script and move on, but I started digging beause I am new to plesk, esp 8.0 boxes and I wanted to see for myself. I am not a programmer at all, so I followed this tutorial:

http://codewalkers.com/tutorials/72/3.html

And it did to me exactly what it did to him. It seems that the headers are not getting passed right or something because what comes through in the message is a couple of the headers

Code:
Content-Type: text/plain

Content-Transfer-Encoding: 8bit


This is my great test!

Is what is in the body of the message, and the attachment is one of those

att######.dat

files with a bunch of gibberish in
there.

Anyone have any experience in these things that might be able to give me a hand?

Jon
 
How large was the file you were trying to attach? Is your PHP configured to allow files that size, and did your user click "attach" prior to clicking "send"?
 
The test file was very small, only 5K.

There is no attach button.
 
Back
Top