>> Home > M5 PopMonger: Powerful Inbound Email Processing PopMonger Home | My Mach5 | Download | Support | Buy Popmonger  
Online Manual
PopMonger Links


Untitled Document

Explore M5 Mailer

Take the bulk out of email! TM

Use your own data
Personal email merge
Send individual email
HTML and/or text
Handy email templates


Explore M5 Subscriber

Web-based list management made simple!

Simple subscribe tool
Opt-in confirmed
Track reads and clicks
Custom matching look
Free for up to
        5000 contacts

 

VBScript with PopMonger

The class definitions for VBScript are:

VBScript

  object Popmonger
Public Property HeaderText
Public Property BodyText
Public Property MessageText
Public Property FailedAddress
Public Function HeaderField (sHeader_name)
Public Function Field (iFieldNumber)
Public Property FieldsCount
Public Function MIMEPart (iPartNumber)
Public Property MIMEPartsCount
Public Function RedirectMessage ("sTo_address1,To_address2,To_address3")
Public Function ReplyWithText (sFrom_address, sSubject, sReply_text)
Public Function SendMail (sFrom_address, sTo_address, sSubject_text, sBody_text, sEx_headers)
Public Function SaveToFile (sFile_name, sText_to_save, bIsAppend)

VBcript Examples:

  • Insert into Access

    • Insert into Access

      This script will insert an entry from PopMonger into a MS Access database using VBScript:

      <?

      Dim dbLocation 'Location of our Access database file
      Dim sSQL 'Our SQL query
      dbLocation = "C:\database.mdb"
      Set objADO = CreateObject("ADODB.Connection") 'Create an ADO connection to a database

      objADO.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbLocation 'Open the database
      sSQL = "INSERT INTO table1 ( field1 , field2 ) VALUES('" & popmonger.Field(0) & "' , '" & popmonger.Field(1) & "')" 'Set our SQL query
      objADO.Execute( sSQL ) 'Execute this SQL query

      'Cleanup
      objADO.Close
      Set objADO = Nothing

      ?>


      Back to Examples

    Home   |   Site map   |   Analyzer   |   Mailer   |   PopMonger   |   Resources   |   Customers and Partners  |   Contact
    Mach5 is a trademark of Mach5 Development, in use since 2000.