How to send report from Delphi program via MAPI protocol
Just copy following code for sending the report from your own application:
There are two important issues for this example:
- The recepient address must be written in canonical form Name <email@example.com>. Simple forms - firstname.lastname@example.org will be rejected by some mail clients. For example, Microsoft Outlook require a canonical form of the recepient address.
- You must set fields Login and Password with empty values.