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 <C_CkEmail.h>

void ChilkatSample(void)
    {
    HCkEmail email;
    const char *html;
    const char *mime;

    email = CkEmail_Create();

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

    CkEmail_SetHtmlBody(email,html);

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

    mime = CkEmail_getMime(email);
    printf("%s\n",mime);


    CkEmail_Dispose(email);

    }