Sample code for 30+ languages & platforms
C++

Create Email with Embedded Link

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

Chilkat C++ Downloads

C++
#include <CkEmail.h>

void ChilkatSample(void)
    {
    CkEmail email;

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

    const char *mime = 0;
    mime = email.getMime();
    std::cout << mime << "\r\n";
    }