FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Envio de Mail con Texto Enriquecido
Posts: 392
Joined: Tue Jul 29, 2008 01:55 PM
Envio de Mail con Texto Enriquecido
Posted: Fri Oct 14, 2011 06:40 PM

Hola FiveWinners.

Estoy tratando de enviar una mail con la clave Tmail, pero requiero enviar texto Enriquecido, en el cual pueda cambiar de color algunas freses y cambiar el tamaño del Font.

O existe otro metodo para enviar Mail's con colores, y fonts diferentes?

Alguien conoce el Truco ?

Saludos

Visite Chiapas, el paraiso de México.
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Envio de Mail con Texto Enriquecido
Posted: Sat Oct 15, 2011 05:08 AM
This is just an idea.

I understand that you should use html email to support different colors and text formatting in your email.
I don't know whether any class is available to create an HTML file format. If not available then,

1. You can use a rich edit control to help the user to compose and format the email (Color, Bold, underline etc.). FWH\Samples\TestRTF.Prg would be a good sample to begin with.
2. Save the contents as an .RTF file
3. Use Word OLE to open the .RTF file and then convert and save as .HTML file
4. Use this .html file to send the mail.
:-)

Regards

Anser

Continue the discussion