Chilkat 9.5 serial
Get Value of oNamereceiverForm to sNameTo Procedure onAddReceiverToMail Handle hoMailObj I can imagine you can use a completely different approach of sending emails from within your application but I hope I got you started with this example.
In this sample it dynamically fills the name of the application sending this email (nothing fancy), but you will get the idea. This example also demonstrates how you can do some kind of mail merge. It uses a html template loaded from appHtml\mailtemplates folder. This examples demonstrates the sending of an html based e-mail. It is referenced by its manifest file (thanks Nils) so you don't have to register it. Put your ChilkatAx-9.5.0-win32.dll in the programs folder also. define your from emailadres in the in the key section īecause of the size of the workspace attachment I've omitted the chilkat dll. define your smtp settings in the in the key section insert your Chilkat Unlock codes in the mail.pkg In order to get this example working you have to complete the following steps:
#Chilkat 9.5 serial how to#
Here I've attached a workspace which demonstrates how to send emails with the latest version of the 32-bit chilkat activex (as now version 9.5.46). send add_item of oGrid1 msg_none dtSent send add_item of oGrid1 msg_none sSubject send add_item of oGrid1 msg_none sFrom if (sFrom="") get comFrom of hMail to sFrom get comGetEmail of hBundle iItem to vMail get comMessageCount of hBundle to iCount get ComGetAllHeaders of hMailMan 0 to vBundle get createNewEmail of hMailMan to hMail set comPopPassword of hMailMan to "yourPOP3password" set comPopUserName of hMailMan to "yourPOP3username" Example 4 - Get a list of emails on your POP3 server: get ComLoadTextFileToUnicode of hMail "c:\files\signature.htm" "iso-8859-1" to sTxt send addHtmlText of hMail "DisneylandHave You ever been there?" send addImage of hMail "c:\images\disneyland.jpg") "MIDDLE" set ComSubject of hMail to "Subject text"
Example 3 - Send HTML email with embedded image and signature from a file: send info_box (if(hMail=0 OR iRet=0,"Mail could not be sent!","Mail sent OK")) get ComAddFileAttachment of hMail "c:\files\myfile.zip" to sRet set comBody of hMail to "Mail body text" set comSubject of hMail to "Subject text" get comAddTo of hMail "Mickey Mouse" to iRet get CreateNewEmail of oCKmail to hMail Example 2 - Send plain text email with file attachment: send info_box (if(iRet=0,"Mail could not be sent!","Mail sent OK")) get comQuickSend of oCKmail "" "Subject text" "Mail body text" to iRet Example 1 - most simple way to send an email:
#Chilkat 9.5 serial windows#
It will work with both windows and webapp applications. This is a VDF wrapper class that makes it very easy to use the ChilKat email component for sending and managing emails from VDF.