JavaScript
JavaScript
Create Email with Embedded Link
Creating an email with an embedded link (HTML hyperlink).
Note
This example is intended for running within a Chilkat.Js embedded JavaScript engine. All Chilkat JavaScript examples require Chilkat
v11.4.0 or greater.
var email = new CkEmail();
// To create an email with an embedded link, use HTML:
var html = "<html><body><p>Click here for more information: <a href=\"http://www.chilkatsoft.com/\">Chilkat Software</a></body></html>";
email.SetHtmlBody(html);
// Continue building the email by adding the subject, recipients, etc...
var mime;
mime = email.GetMime();
console.log(mime);