Example

Object reference
» Recipient » MailMerge » Attachment » Recipients » Message » Headers


JMail 4.4
Manual
 
 
 JMail.MailMerge
    Item : String
    MailTemplate : Pointer
    MergeAttachments : Boolean
    BulkMerge(RecordSet, enque, Maildestination ) : 
    Expand() : Pointer
    ExpandFromRecordSet(RecordSet ) : Pointer
    SetDebugMode( TestMailAddress, TestCount ) : 


Properties

  Item(VariableName) : 
Sets your merging variables manually. Note you can not combine this with recordset merges.
'MailMerge.Item( "CustomerName" ) = "Lisa Nilsson"'
 
  MailTemplate() : 
Sets your own created Message object (it will serve as a template in the merge process).
'MailMerge.MailTemplate = myMsg'
 
  MergeAttachments() : 
If set to TRUE, attachments will also be scanned for merge variables and be mailmerged.
'MailMerge.MergeAttachments = true'
 
 

Methods

  BulkMerge(RecordSet, enque, Maildestination) : 
Merge an entire recordset with mailTemplate and sends alternatively enques it. Mail server or pickup directory is specified in Maildestination.
'MailMerge.BulkMerge myRS, false, "mail.myDomain.com" 
/pMailMerge.BulkMerge myRS, true, "c:\inetpub\mailroot\pickup"'
 
  Expand() : 
Merges MailTemplate with user defined variables specified in the Item property.
'MailMerge.Expand'
 
  ExpandFromRecordSet(RecordSet) : 
Merges one row from an ADO Recordset with MailTemplate.
'set msg = MailMerge.ExpandFromRecordSet( myRS )'
 
  SetDebugMode(TestMailAddress, TestCount) : 
Tells Mailmerge to enter debug mode. All recipients in your emails will be set to TestMailAddress and TestCount e-mails will be sent to you.
'MailMerge.SetDebugMode "myEMail@company.com", 10'