Introducing the Email Client Library

In case you missed the news, now you can easily email optimization results from your AIMMS project using the Email Client Library.
The Email Client Library allows you to send email directly from AIMMS. This feature replaces the previous AIMMSMapi solution and offers more flexibility and compatibility.
It supports attachments and templates for the body of the email.
Since it does not require Outlook to be installed, the library can be used both client- and server-side. And, it is compatible with the cloud platform.
Creating Email Templates
The Email Client Library supports HTML emails, and templates in both HTML and TXT format.
Let’s say you want to automate an email to your colleagues, or customers, attaching some data connected to your AIMMS project. You want to make an email template that has some styling and maybe an image, but you don’t want to code it in HTML. Good news, we have a hack for you — let MS Word do the work!
Go to your old friend MS Word and write up your email body template with whatever fonts and alignment and images you want.
If you’re planning on sending out a group of emails, you can use place holder values in your template and set up your AIMMS procedure to replace the place holders with the correct entries (such as recipient names) while generating the mailing. (Learn more about that in our How-to topics: Using the Email Client Library and Using templates with the Email Client Library .)

Click “Save as…” and select “.txt”. (You’ll want to save this in your AIMMS project files.)

Click “Save as…”, again, and select “.html (filtered)”.

If you used images, they will appear in a folder in the same destination as your HTML file.

Open up the .html file in your favorite text editor and find your image in the code.
Change the relative file path to “cid:” so that it will be referenced correctly from your AIMMS project.

Now your templates are ready to use.
Further Reading
Learn more about the Email Client Library in AIMMS Documentation .