Sample code for 30+ languages & platforms
Delphi DLL

Create Email with Embedded Link

Creating an email with an embedded link (HTML hyperlink).

Chilkat Delphi DLL Downloads

Delphi DLL
uses
    Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
    Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Email;

...

procedure TForm1.Button1Click(Sender: TObject);
var
email: HCkEmail;
html: PWideChar;
mime: PWideChar;

begin
email := CkEmail_Create();

// To create an email with an embedded link, use HTML:
html := '<html><body><p>Click here for more information: <a href="http://www.chilkatsoft.com/">Chilkat Software</a></body></html>';

CkEmail_SetHtmlBody(email,html);

// Continue building the email by adding the subject, recipients, etc...

mime := CkEmail__getMime(email);
Memo1.Lines.Add(mime);

CkEmail_Dispose(email);

end;