I have been using ShellExecute to generate 5 or 6 emails in one go using the Windows default mail client:
ShellExecute(Self.Handle, nil, Pchar(email), nil, nil, SW_NORMAL);
This then allows the user to decide if they want to send them or not.
The issue I am having is if the email body text is too long, it gets truncated in the created email. I presume this is a limitation of creating emails in this way.
I have looked at switching the way I generate the emails to using MAPI instead, but the issue I found is that all the MAPI routines or components I have tried seem to only allow me to create one email at a time. The end user then has to decide if they want to send it or not before the next one is generated.
Is there either a fix for ShellExecute's length issue, or is there a way to still generate a batch of emails in one go using MAPI or another way? I would like to use the default Windows email client to dipslay the messages.
I am using Delphi 7.