PowerBuilder
PowerBuilder
Create Email with Embedded Link
Creating an email with an embedded link (HTML hyperlink).Chilkat PowerBuilder Downloads
integer li_rc
oleobject loo_Email
string ls_Html
string ls_Mime
loo_Email = create oleobject
li_rc = loo_Email.ConnectToNewObject("Chilkat.Email")
if li_rc < 0 then
destroy loo_Email
MessageBox("Error","Connecting to COM object failed")
return
end if
// To create an email with an embedded link, use HTML:
ls_Html = "<html><body><p>Click here for more information: <a href=~"http://www.chilkatsoft.com/~">Chilkat Software</a></body></html>"
loo_Email.SetHtmlBody(ls_Html)
// Continue building the email by adding the subject, recipients, etc...
ls_Mime = loo_Email.GetMime()
Write-Debug ls_Mime
destroy loo_Email