Tips and Frequently Asked Questions
Sending TAdvRichEditor formatted text by email
Sending an email with the formatted text created by TAdvRichEditor is really simple. To do so, drop a TAdvRichEditor on the form and the Indy idSMTP component. The content of the TAdvRichEditor can be sent with:
var msg: TIdMessage; Textpart: TidText; begin msg := TIdMessage.Create(self); try msg.ContentType := ''multipart/alternative''; TextPart := TIdText.Create(msg.MessageParts); TextPart.ContentType := ''text/plain''; TextPart.Body.Clear; TextPart.Body.Text := AdvRichEditor1.ContentAsPlainText; TextPart := TIdText.Create(msg.MessageParts); TextPart.ContentType := ''text/html''; TextPart.Body.Clear; TextPart.Body.Text := AdvRichEditor1.ContentAsHTML; msg.From.Address := ''developer@delphi.com''; msg.From.Text := ''Delphi Developer''; msg.Recipients.Add.Address := ''joe.do@mailbox.com''; msg.Subject := ''Your message subject here’; IdSMTP1.Send(msg); finally msg.Free; end; end;
Pricing
Single Developer License
Small Team License
Site License
TMS VCL UI Pack
€ 375
€
150
yearly renewal
license for 1 developer
MOST POPULAR
BEST VALUE
All prices excl. VAT. Renewal price is subject to change and only valid up to 30 days after license has expired. After renewal period a discount price is offered to renew the license.
Free Trial
Note that the TMS VCL UI Pack replaces the TMS Component Pack. Both products can't be installed simultaneously. Therefore TMS Component Pack must first be uninstalled before installing the TMS VCL UI Pack