E-mail and Sound Support

E-mail and Sound Support

This example illustrates two external DLLs (complete with source) that allow you to

  • programmatically generate and send e-mail messages from within a model
  • play sounds from within your model

The e-mail interface makes use of the Simple MAPI API provided by Windows in Mapi32.dll. You can only use it if a MAPI compliant e-mail client (such as Outlook) is installed on your computer.

The sound interface makes use of the Win32 PlaySound function. You can use it, for instance, to play .wav files from within your model upon particular user interaction.

In the respective source directories you will find the C source files of both interfaces to AIMMS, as well as the Visual Studio 2010 projects that were used to build the DLLs providing the interfaces.

If you need e-mail and/or sound support in your AIMMS application you can simply import one or both interface section contained in the directory 'Import Sections' into your own AIMMS model.

If your needs go beyond the provided interface, you can modify and re-compile the provided source code to suit your own needs.

Keywords

E-mail, Sound, External procedure.  

Download

A zip file with this example can be downloaded here.