Solved

Rich text in email

Posted on 2009-07-15
5
284 Views
Last Modified: 2012-05-07
How can I send the body of a email in rich text using Indy
0
Comment
Question by:gerhard9121
  • 2
  • 2
5 Comments
 
LVL 21

Expert Comment

by:developmentguru
ID: 24859855
As I understand it you have two options.  You can convert the rich text to HTML and send it in the body of the email or you can add the rich text as a separate file attachment.  The body of the email is generally plain text or HTML.  If what you have allowed your users to enter in rich text is simple then you should be able to do the conversion yourself.  If you will choose one of the options and give it a shot I would be happy to help with new questions that come up.
0
 

Author Comment

by:gerhard9121
ID: 24867021
When I load a .HTM file into the message body I only get plain text with the format characters in the body of the email

Var
  l_body: TStrings

  l_body.loadfromfile(etmp.htm);
  msg.body.assign(l_body);
0
 
LVL 21

Expert Comment

by:developmentguru
ID: 24873519
You would need to be sure that the account receiving your email is setup to allow HTML emails.
0
 
LVL 22

Expert Comment

by:senad
ID: 24891739
got a nice mail component from: http://www.raize.com/DevTools/RzComps/Default.asp

it lets you compose msg any way you want and send it...
Cute really ...
0
 

Accepted Solution

by:
gerhard9121 earned 0 total points
ID: 24925535
Had a look at the raize demo but it just sends your email to an email program like outlook.

I have my own SMTP and want to send the body as rich text
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
code issue 8 130
Delphi: Connect to running MS Outlook 4 86
Base1 Encode/Decode 3 77
Dynamically Created Query 3 55
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question