Page 1 of 1

Showing errors occurred during sending a mail

Posted: Tue Jan 17, 2017 3:09 pm
by MarkusD
Hi,

I'm using AutoSendBugReport to send a mail from a customers PC. Sending the mail did not work. It does work when I'm using a domain name of the customer.

That does not work:

Code: Select all

MESettings.MailFrom := 'info@my_company.com';
That does work:

Code: Select all

MESettings.MailFrom := 'info@customer_company.com';
I assume sending mails from within the customers network to the outside world is not allowed. Now I try to find out with the customers IT department how to fix that and they ask me, what exactly is the error message our application gets.

Where (global variable in madExcept for example) can I find out what went wrong? The only thing I can log is that something went wrong.

Code: Select all

    if AutoSendBugReport(AMMSService.DisplayName, Screenshot, MESettings, True) <> Yes then begin
      TMSLogger.Error('Error sending mail!');
    end;
TIA, Markus

Re: Showing errors occurred during sending a mail

Posted: Mon Jan 30, 2017 11:55 am
by madshi
Do you have to use MailFrom := yourself? Why not using the customer's email address? Makes more sense, logically, doesn't it?

The exact location where errors occur depend on which bug report sending you're using exactly. Which is it?