Using MAPI eMail without Preview
dekoforce
Germany
Hi,
i??m trying to send email with the MAPI functionality.
It works fine when using the report.show function. But i want FastReport to open a new eMail (from Thunderbird) attached with the report as PDF.
Also it would be fine to add Address, Subject and Message Text programmatically.
Every code snipped i??ve found work??s only without MAPI in SMTP mode.
Any idea?
i??m trying to send email with the MAPI functionality.
FastReport.Utils.Config.EmailSettings.UseMAPI = True
It works fine when using the report.show function. But i want FastReport to open a new eMail (from Thunderbird) attached with the report as PDF.
Also it would be fine to add Address, Subject and Message Text programmatically.
Every code snipped i??ve found work??s only without MAPI in SMTP mode.
Any idea?
Comments
Try this in your form:
IntPtr handle = this.Handle;
It will return the handle of the form and pass it to MAPI.SendMail
thanks a lot! This works.