 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Julio Takahashi Guest
|
Posted: Tue Jan 18, 2005 2:27 pm Post subject: Rich text outlook mail |
|
|
Hi,
I´m using outlook 2k and I can connect and send email, but not in Rich Text mode. I´m using this:
MailItem.Body := RichText1.Lines.Text;
Even the text is formatted (bold, italic), in Outlook the message appears without formatting.
What is wrong?
Thanks in advance
|
|
| Back to top |
|
 |
Mike Shkolnik Guest
|
Posted: Tue Jan 18, 2005 3:59 pm Post subject: Re: Rich text outlook mail |
|
|
Use the MailItem.HTMLBody property instead and don't forget to convert your
richedit to html-string
--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com
"Julio Takahashi" <juliotak (AT) terra (DOT) com.br> wrote
| Quote: |
Hi,
I´m using outlook 2k and I can connect and send email, but not in Rich
Text mode. I´m using this:
MailItem.Body := RichText1.Lines.Text;
Even the text is formatted (bold, italic), in Outlook the message appears
without formatting.
What is wrong?
Thanks in advance
|
|
|
| Back to top |
|
 |
Julio Takahashi Guest
|
Posted: Tue Jan 18, 2005 10:56 pm Post subject: Re: Rich text outlook mail |
|
|
How can i convert richedit to html-string?
"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote:
| Quote: | Use the MailItem.HTMLBody property instead and don't forget to convert your
richedit to html-string
--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com
"Julio Takahashi" <juliotak (AT) terra (DOT) com.br> wrote in message
news:41ed1cd7$1 (AT) newsgroups (DOT) borland.com...
Hi,
I´m using outlook 2k and I can connect and send email, but not in Rich
Text mode. I´m using this:
MailItem.Body := RichText1.Lines.Text;
Even the text is formatted (bold, italic), in Outlook the message appears
without formatting.
What is wrong?
Thanks in advance
|
|
|
| Back to top |
|
 |
Dmitry Streblechenko Guest
|
Posted: Wed Jan 19, 2005 12:11 am Post subject: Re: Rich text outlook mail |
|
|
Generally speaking, you can't easily convert RTF to HTML; the opposite is
true for Outlook (you can wrap HTML into RTF and ste thePR_RTF_COMPRESSED
property).
You can still set the RTF Body - see
http://www.outlookcode.com/d/formatmsg.htm
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Julio Takahashi" <juliotak (AT) terra (DOT) com.br> wrote
| Quote: |
How can i convert richedit to html-string?
"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote:
Use the MailItem.HTMLBody property instead and don't forget to convert
your
richedit to html-string
--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com
"Julio Takahashi" <juliotak (AT) terra (DOT) com.br> wrote in message
news:41ed1cd7$1 (AT) newsgroups (DOT) borland.com...
Hi,
I´m using outlook 2k and I can connect and send email, but not in Rich
Text mode. I´m using this:
MailItem.Body := RichText1.Lines.Text;
Even the text is formatted (bold, italic), in Outlook the message
appears
without formatting.
What is wrong?
Thanks in advance
|
|
|
| Back to top |
|
 |
Mike Shkolnik Guest
|
Posted: Wed Jan 19, 2005 5:55 pm Post subject: Re: Rich text outlook mail |
|
|
Check the torry.net - there are a lot of convertors (free and shareware) for
rtf2html
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com
"Julio Takahashi" <juliotak (AT) terra (DOT) com.br> wrote
| Quote: |
How can i convert richedit to html-string?
"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote:
Use the MailItem.HTMLBody property instead and don't forget to convert
your
richedit to html-string
--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com
"Julio Takahashi" <juliotak (AT) terra (DOT) com.br> wrote in message
news:41ed1cd7$1 (AT) newsgroups (DOT) borland.com...
Hi,
I´m using outlook 2k and I can connect and send email, but not in Rich
Text mode. I´m using this:
MailItem.Body := RichText1.Lines.Text;
Even the text is formatted (bold, italic), in Outlook the message
appears
without formatting.
What is wrong?
Thanks in advance
|
|
|
| Back to top |
|
 |
Julio Takahashi Guest
|
Posted: Thu Jan 20, 2005 2:29 am Post subject: Re: Rich text outlook mail |
|
|
I found this:
var s: TStringStream;
begin
s:= TStringStream.Create('');
RichText1.PlainText:= False;
RichText1.Lines.SaveToStream(s);
MailItem.Body := s.DataString;
Thanks a lot to make me see the path.
"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote:
| Quote: | Check the torry.net - there are a lot of convertors (free and shareware) for
rtf2html
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com
"Julio Takahashi" <juliotak (AT) terra (DOT) com.br> wrote in message
news:41ed942f$1 (AT) newsgroups (DOT) borland.com...
How can i convert richedit to html-string?
"Mike Shkolnik" <mshkolnik2002 (AT) ukr (DOT) net> wrote:
Use the MailItem.HTMLBody property instead and don't forget to convert
your
richedit to html-string
--
With best regards, Mike Shkolnik
EMail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
http://www.scalabium.com
"Julio Takahashi" <juliotak (AT) terra (DOT) com.br> wrote in message
news:41ed1cd7$1 (AT) newsgroups (DOT) borland.com...
Hi,
I´m using outlook 2k and I can connect and send email, but not in Rich
Text mode. I´m using this:
MailItem.Body := RichText1.Lines.Text;
Even the text is formatted (bold, italic), in Outlook the message
appears
without formatting.
What is wrong?
Thanks in advance
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|