Attach dynamically a log file to the email bug report
Posted: Tue Mar 28, 2017 8:22 am
Hi,
I'm trying to add an attached file to the emailed bug reports.
The attachment must be done programmatically and not by the properties settings because the name of the file depends on the connected user name.
In the madexcept help, I found :
// Examples:
MESettings.AdditionalAttachments.Add('c:\boot.ini');
exceptIntf.AdditionalAttachments.Add(ParamStr(0), '', 'crashingExe.zip');
And it doesn't work, so I digged into the issue and :
- I found the use clause for the MESettings object : "use madexcept" is ok,
- but I found no use clause for the exceptIntf object
- I found no reference to the 'AdditionalAttachments' word into the demos provided with madcollection,
- I found 2 references to 'exceptInt', but they were parameters of a function, so it was not usefull in my case
So I don't know what to do further
If anybody can help or has a sample code, I thanks him in advance.
My current language is Delphi 6.
I'm trying to add an attached file to the emailed bug reports.
The attachment must be done programmatically and not by the properties settings because the name of the file depends on the connected user name.
In the madexcept help, I found :
// Examples:
MESettings.AdditionalAttachments.Add('c:\boot.ini');
exceptIntf.AdditionalAttachments.Add(ParamStr(0), '', 'crashingExe.zip');
And it doesn't work, so I digged into the issue and :
- I found the use clause for the MESettings object : "use madexcept" is ok,
- but I found no use clause for the exceptIntf object
- I found no reference to the 'AdditionalAttachments' word into the demos provided with madcollection,
- I found 2 references to 'exceptInt', but they were parameters of a function, so it was not usefull in my case
So I don't know what to do further
If anybody can help or has a sample code, I thanks him in advance.
My current language is Delphi 6.