Hi Maverick, > I am looking for a tool, which helps me in choosing the standard > or advanced feature while composing the mail.For E.g.. In yahoo, > you can use text in normal feature, if we need to use HTML, then > we choose HTML. Just like this, I want to use in my email module, > where sender can choose the style of sending, It can be in Text or > HTML.
For this, you just need something like: <form> I want to send e-mail in <input type="radio" name="format" id="format-text" value="text"> <label for="format-text">plain text format</label> <br> <input type="radio" name="format" id="format-html" value="html"> <label for="format-html">HTML format</label> </form> Then, in whatever code sends the email, use the "format" variable to decide which Content-Type headers to attach (if you use PHP I have some code for this that you're welcome to). Don't forget that if your user selects HTML mail, you should send a multipart-alternative message with a plain text section as well, for those who can't/won't read the HTML. > If he chooses HTML, he should be able to define font size, color and font. If you just want one selection for the whole email, this is easy to achieve - set up a load of combo boxes (or whatever) that hold the options, and parse them in your mail-sending code. If you want to offer a full HTML editor, similar to the one you get on Hotmail (I don't know about Yahoo, but I imagine it's the same sort of thing), that makes it considerably harder. If it's an IE-only project, you should be able to grab an ActiveX control from Microsoft for doing this, but if it's for a public-facing website you may want to rethink your plans... Cheers Jon ____ � The WDVL Discussion List from WDVL.COM � ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
