|
|||||||||||||||
|
|||||||||||||||
Mailer Gold and Application IntegrationThe Gold version of Mailer can be integrated easily with other applications through .NET or through the command line. Mailer provides a very simple COM interface for launching mailings, and also provides a simple command line syntax for running mailings. Mailings run from COM or from the command line run silently and in the background. In other words, no Mailer interface comes up on the screen. In both cases, you need to create your mailing first with Mailer using the normal method. COM SupportThe COM interface to Mailer is very simple:
VBS code sample:
During the mailing, Mailer logs its output to a specific folder, which is the default Mailer log folder with a special filename:
Mailer also supports a more powerful COM interface:
VBS code sample:
The following functions change and inspect simple mailer attributes. For example if you need enable SSL support, you call SetAttribute(“UseSSL”, “true”); UseSSL is a single attribute supported now.
Command line OperationMailer can be invoked from the command line, optionally in Silent mode. Use the "/s" command line switch to start a mailing in silent mode. Mailer executes the mailing using the simple M5SimpleMailer COM object described above, but with convenient command line accessibility. The /L <log-file-name> turns on detailed SMTP traffic logging to a log file. Command line sample: Creating Dynamic Mailings with DOMNote that m5m files are XML formatted. That means that you can use DOM to modify the mailings if you wish. You can have your application create the mailing in its entirety, including scripting, list restrictions, and nearly everything else. However, for security reasons, there is at present no way to use DOM to create or modify the database connection strings that Mailer creates to tie the mailing to the data source. Nonetheless, if you create a set of mailings using Mailer to different databases, you can still use DOM to replace the database connection string appropriately and as needed. Just make a mailing using a connection, copy the connection string out, and paste it into your application to substitute in to your mailing using the DOM interface. In this way, you can still dynamically control what database your mailing connects to, but you need to use Mailer to create these connections first. You can put an unencoded connection string into Mailer's XML file directly. Here's an example:
M5 Mailer stores connection strings encoded if you make a connection using the interface, to hide any passwords in the connection string.
|
|
Home |
Site map |
Analyzer |
Mailer |
PopMonger |
Resources |
Customers
and Partners |
Contact |