Sample code for 30+ languages & platforms
Java

Create Email with Embedded Link

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

Chilkat Java Downloads

Chilkat2 Java
import com.chilkatsoft.chilkat2.Email;

public class ChilkatExample {

    public static void main(String[] args) {
        Email email = new Email();

        // To create an email with an embedded link, use HTML:
        String 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...

        String mime = email.getMime();
        System.out.println(mime);
    }
}