Solved

Rich text in email

Posted on 2009-07-15
5
291 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to debug For loops? 3 74
Firemonkey BASS_Init into a thread 17 82
Way to create an iPhone app for my customers 8 89
Firemonkey how to swip panel with finger tap 1 40
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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

734 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