Sample code for 30+ languages & platforms
PureBasic

Create Email with Embedded Link

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

Chilkat PureBasic Downloads

PureBasic
IncludeFile "CkEmail.pb"

Procedure ChilkatExample()

    email.i = CkEmail::ckCreate()
    If email.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

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

    CkEmail::ckSetHtmlBody(email,html)

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

    mime.s
    mime = CkEmail::ckGetMime(email)
    Debug mime


    CkEmail::ckDispose(email)


    ProcedureReturn
EndProcedure