Solved

Rich text in email

Posted on 2009-07-15
5
281 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now