How is supposed to work? My intuition is that the browser should not be involved. I modified the script to verify if the user/passwd are validated and the browser ask to save the login information so the autentication is successful using the browser. It appears that the script doesn't receive any atachments. So I removed the atachment check. However, the problem persisted, the variables MailSubject/MailBody are not set. In the end, I guess that something is wrong with the way the script is called.
Code: Select all
var FollowRedirect : boolean = true; // automatically open web browser when HTTP upload returns redirect request
You can check which redirect URL the server requested by checking this variable exported by madExcept.pas, after you attempted to upload a bug report:
Code: Select all
var LastRedirectURL : AnsiString = ''; // always contains the last HTTP upload redirect request
I enabled the attachment and the exe fails to send the report. I found the php error on the website log that the Function get_magic_quotes_runtime() is deprecated in class.phpmailer.php. I removed those lines and now the report is sent successfuly with atachment.
Finally the script works and the validation from the settings is less than useful. I suggest a button for immediate manual verification with a clear respose code and message (script return code?) to help the debugging.
The exception dialog should be friendly with vcl styles. Dark styles makes the dialog hard to read (owner draw option do no make any difference).
About the dialog: madExcept doesn't use VCL at all, because the dialog has to be thread safe, and the VCL is not thread safe, sadly. So madExcept creates the dialog painfully using pure win32 APIs. That makes it a bit harder to make it work well with different styles. But it should be possible somehow, of course. One thing you could do is to replace the dialog with your own dialog. You can even use VCL for that, but then showing your own dialog would only work as long as the main thread is still reacting. Otherwise, the madExcept dialog would be shown again.