Sending Export Results Via SMTP

Valid from List & Label 10
Starting with List & Label 10 you can easily send export results directly via SMTP. Thus, you no longer need a MAPI client on the user's machine.
Until List & Label 16 the mail settings can be adjusted globally using the "combit Mail Settings" control panel applet. Alternatively, your application may use custom settings. Please note the API LsMailConfigurationDialog().

The mail functionality can be accessed via the usual exporter API. For VB, Delphi and .NET, take a look at the "Export" example.

In C# the code would look like this:
LL.ExportOptions.Add(LlExportOption.ExportSendAsMail, "1");
LL.ExportOptions.Add(LlExportOption.ExportMailTo, "combit <SMTP:llmailtest@combit.net>");
LL.ExportOptions.Add(LlExportOption.ExportMailSubject, "combit List & Label mail test");
LL.ExportOptions.Add(LlExportOption.ExportMailShowDialog, "1");
LL.ExportOptions.Add(LlExportOption.ExportMailSendResultAs, "text/html"); 


The last line tells List & Label to send the export result directly as mail body, not as an attachment. This makes it easy to design and send personalized HTML emails with List & Label.

Related articles:

KBTE000636
IDKBTE000635 KBTE000635