On 10/01/2003 05:28 PM, Chris wrote:
I wrote an ultra basic mail interface as a part of my client's customer administration area to handle emails. Basically, the standard email form gets stored in a database, and when they respond to the help request, they fill out the form and PHP emails the message.
Now, they want to have the original email appear as a part of their reply. I could use wordwrap() at around 70 characters and have every line appear with the traditional '>' to indicate the replied text. It doesn't seem to be a very elegant solution for mail clients that reflow quoted text (not certain how to explain this, but Opera's mail client does it).
Is there a way to for mail() to include quoted text like it was actually replying to an actual mail client would?
Try this class that comes with the function QuoteText("your text here","> ") that does precisely what you need:
http://www.phpclasses.org/mimemessage
--
Regards, Manuel Lemos
Free ready to use OOP components written in PHP http://www.phpclasses.org/
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php