On 03/25/2004 10:15 AM, Ron Herhuth wrote:
I am dying here. I'm on a deadline and I can't get attachments...specifically PDFs and Word Docs to send without corruption. I am using the script below to send the emails, and I have used several of the classes on PHP.classes to try but everytime the files show up and the error reads "The File is damaged and could not be repaired" when they are opened. When I print the message out to the browser it appears as though the entire string is not being sent. Is there any ini settings that might affect this? I am really in a bind and don't know what to do. Any suggestions would be greatly appreciated.
Have you tried this class? It sends messages with attachments perfectly, guesses the file type automatically if necessary and comes with an example of how to do it:
http://www.phpclasses.org/mimemessage
--
Regards, Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php