• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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