> But if mail.inc is an html file, mail program don't recognise html > code and parse it as a text file
Although simply adding a Content-Type header for HTML will help, it will not ensure that all recipients see the message you intend. To ensure that most email clients will properly manage the HTML in the email message, there are a number of steps to creating the message: 1. Create a multipart message with both text and HTML parts. Use the "Content-Type: multipart/alternative;" header. Even when someone has specified they want HTML, this will ensure that they can read the text in alternative email clients like web mail. 2. Use well written HTML and the simpler, the better. Many email clients still render HTML poorly. 3. Wrap the HTML just like any email message. Although there are probably few servers that still truncate lines, it is still possible that long lines will be truncated. 4. Use quoted-printable encoding when wrapping the HTML. And a final obscure tip: To ensure that Microsoft email clients properly display the HTML, add the following header to the HTML content part: X-MS-Request-Fidelity: high Some MS email clients (Entourage included) will somewhat arbitrarily decide to use a simple HTML rendering on some HTML messages unless you include the above header. Will _______________________________________________ Active4D-dev mailing list [email protected] http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
