w3JMail Reference

Reference 4.5

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


Properties

  ContinueOnFail() : 
If set to FALSE, BulkMerge will break on the first error. Default: false.
'MailMerge.ContinueOnFail = True'
  Item(VariableName) : 
Sets your merging variables manually. Note you can not combine this with recordset merges.
'MailMerge.Item( "CustomerName" ) = "Lisa Nilsson"'
  Log() : 
Property to access a list of the email addresses that failed.
'Set list = MailMerge.Log'
  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'


Dimac w3 JMail is composed of several objects. The most important one is the Message object. You will best get acquainted with them, by reading the examples provided. If you are running the old version of w3 JMail (3.7), you can find the reference in the menu to the left.