Command line switches
With the release of Jamail 3 command line switches are available for automatically running Jamail through a script or a scheduled task.
The following command line switches and parameters can be used:
- -p "JamailProject.jm3" - Load project file
Required. Load the configuration from the project file, but does not send out the mailing (see option -s). You should include the entire path to the jm3 file. Please pay attention to the fact that directory and file names may include spaces - the complete path and filename must be quoted then.
Example: jamail3.exe -p "c:\my files\jamailing\my jamail project.jm3"
- -u "Profilname" - Use profile
Optional. If you have more than one jamail profile defined, you may pass the profile name here. If you used just the default profile, you do not need this parameter.
Example: jamail3.exe -p "sales"
- -s - start jamailing
Sends out the mailing from the given project. Without -s, Jamail just loads the project, but will not send mails.
Example: jamail3.exe -s -p "c:\my files\jamailing\my jamail project.jm3"
- -t - Close Jamail after send
Option -t exits jamail 3 after sending out the mailing. Use this option from a batch file, for example to continue processing. Example: jamail3.exe -s -t -p "c:\my files\jamailing\my jamail project.jm3"
- -d - Shutdown PC after send
You may shutdown your pc after having sent out the mailing. The shutdown process may be aborted during a 90 second wait. The option is ignored if not -s option is given.
Example: jamail3.exe -s -t -p "c:\my files\jamailing\my jamail project.jm3"
The parameters allow you to automate or simply start a mailing later. For example, via the Windows scheduler, you may start your mailing in the evening, shutting down your pc after the work ist done.
