Sample code for 30+ languages & platforms
Rust

Create Email with Embedded Link

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

Chilkat Rust Downloads

Rust
let email = chilkat::Email::new();

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

email.set_html_body(&html);

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

let mime = email.get_mime().unwrap_or_default();
println!("{}", mime);