I want to send a HTML email with php.but for the people he can not read html email,I hope he can read a text version email.
I hope the my email program can send two format email and different people read different version email.
Thanks
If you have users register then when they register you could add a checkbox asking them if they can recieve HTML emails. Something like:
Click the checkbox below if your email account can receive HTML emails.
The email class by Richard Heyes mentioned in this post already provide functionality for multipart/alternative emails. Using Google or PHPBuilder's search engine will turn up more. Even if you're wanting to write your own, it's still educational to see how it's done.