Ed..
22-Sep-2008, 07:00 PM
I'm trying to use variables when sending email using the SMTP server. I'm using the following settings:
------------------------
Subject:%_ExceptModuleName% %_ExceptModuleVer% %_ExceptMsg%
Message:
%_ExceptModuleName%
%_ExceptModuleVer%
%_ExceptMsg%
%_ExceptModuleName% %_ExceptModuleVer% %_ExceptMsg%
------------------------
The resulting email is:
------------------------
Subject: splitter.exe %_ExceptModuleVer% Floating point division by zero.
Message:
splitter.exe
0.1.22.218
Floating point division by zero.
splitter.exe %_ExceptModuleVer% Floating point division by zero.
------------------------
A few things to note here regarding the %_ExceptModuleVer% variable:
1) The %_ExceptModuleVer% variable IS NOT expanded in the subject line.
2) The FIRST instance of %_ExceptModuleVer% in the message IS expanded.
3) The SECOND instance of %_ExceptModuleVer% in the message IS NOT expanded.
The third item might be caused by the EurekaLog Options dialog wordwrapping the input box to look as follows:
--------------------
%_ExceptModuleName%
%_ExceptModuleVer%
%_ExceptMsg%
%_ExceptModuleName% %
_ExceptModuleVer% %_ExceptMsg%
--------------------
I believe the same problem occurs with the %_MainModuleVer% variable.
Ed.
------------------------
Subject:%_ExceptModuleName% %_ExceptModuleVer% %_ExceptMsg%
Message:
%_ExceptModuleName%
%_ExceptModuleVer%
%_ExceptMsg%
%_ExceptModuleName% %_ExceptModuleVer% %_ExceptMsg%
------------------------
The resulting email is:
------------------------
Subject: splitter.exe %_ExceptModuleVer% Floating point division by zero.
Message:
splitter.exe
0.1.22.218
Floating point division by zero.
splitter.exe %_ExceptModuleVer% Floating point division by zero.
------------------------
A few things to note here regarding the %_ExceptModuleVer% variable:
1) The %_ExceptModuleVer% variable IS NOT expanded in the subject line.
2) The FIRST instance of %_ExceptModuleVer% in the message IS expanded.
3) The SECOND instance of %_ExceptModuleVer% in the message IS NOT expanded.
The third item might be caused by the EurekaLog Options dialog wordwrapping the input box to look as follows:
--------------------
%_ExceptModuleName%
%_ExceptModuleVer%
%_ExceptMsg%
%_ExceptModuleName% %
_ExceptModuleVer% %_ExceptMsg%
--------------------
I believe the same problem occurs with the %_MainModuleVer% variable.
Ed.