Swift
Swift
Create Email with Embedded Link
Creating an email with an embedded link (HTML hyperlink).Chilkat Swift Downloads
func chilkatTest() {
let email = CkoEmail()!
// To create an email with an embedded link, use HTML:
var html: String? = "<html><body><p>Click here for more information: <a href=\"http://www.chilkatsoft.com/\">Chilkat Software</a></body></html>"
email.setHtmlBody(html: html)
// Continue building the email by adding the subject, recipients, etc...
var mime: String?
mime = email.getMime()
print("\(mime!)")
}