Unicode C
Unicode C
Create Email with Embedded Link
Creating an email with an embedded link (HTML hyperlink).Chilkat Unicode C Downloads
#include <C_CkEmailW.h>
void ChilkatSample(void)
{
HCkEmailW email;
const wchar_t *html;
const wchar_t *mime;
email = CkEmailW_Create();
// To create an email with an embedded link, use HTML:
html = L"<html><body><p>Click here for more information: <a href=\"http://www.chilkatsoft.com/\">Chilkat Software</a></body></html>";
CkEmailW_SetHtmlBody(email,html);
// Continue building the email by adding the subject, recipients, etc...
mime = CkEmailW_getMime(email);
wprintf(L"%s\n",mime);
CkEmailW_Dispose(email);
}