BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Rich text outlook mail

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Julio Takahashi
Guest





PostPosted: Tue Jan 18, 2005 2:27 pm    Post subject: Rich text outlook mail Reply with 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
Mike Shkolnik
Guest





PostPosted: Tue Jan 18, 2005 3:59 pm    Post subject: Re: Rich text outlook mail Reply with 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

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





PostPosted: Tue Jan 18, 2005 10:56 pm    Post subject: Re: Rich text outlook mail Reply with quote




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





PostPosted: Wed Jan 19, 2005 12:11 am    Post subject: Re: Rich text outlook mail Reply with quote

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





PostPosted: Wed Jan 19, 2005 5:55 pm    Post subject: Re: Rich text outlook mail Reply with 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

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





PostPosted: Thu Jan 20, 2005 2:29 am    Post subject: Re: Rich text outlook mail Reply with quote


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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.