mrc Documentation
michaels, ross & cole, ltd.
http://www.mrc-productivity.com/
|
|
How to send HTML output directly in email body
Another customer request! You now have the option, through the Application Properties screen, within m-Painter, to specify whether your emailed report will be sent as an attachment or directly in the body of the email. Activating this feature is easy. The first step, if you have not already done so, is to tell m-Power what your mail server is. To do this, click on the Data Dictionary tab, then click the “Paint Data Dictionary Files” link.

Then, select the “Servlet Properties Web 2.0” link.
Look for the following text:

Note: If you do not see a section of code similar to that described above, please scroll to the end of this document for additional assistance.
In the example above, our mail server is named “mail.east.cbeyond.com.” Please check with your Company’s network team to see what the mail server is and if it accepts email requests from the machine hosting your Web Server.
The email sender (our value is “
Next. build your report and be sure to specify the “Web 2.0 Report” Template.

Once your application is compiled successfully, open the Report within m-Painter.

Click the “Application Properties” icon and click the “Email Options” tab.

The “email_option” option controls whether your end user has the option to email this report. Please select “Yes.”
The “email_attach” option controls whether your report is sent directly in the body of the email or as an attachment. For this example, we would like the email to go directly in the body of the email, so we will select “No.”
Lastly, after the report has run, your end user will be directed to a new page to let them know the report has run successfully. You can control this address under the “sending_go” option. In this example, we will redirect to the mrc homepage. See the screenshot below:

Click OK and click the “Save and Deploy Button” At run time, I would see a screen similar to this:

After I have run the report, I am sent an email.
Here are the results – note that the page had been loaded directly
into the body of the email, and that the sender is “

What do I do if I do
not have a section within the text to enter my Mail Server information?
You are using an older version of mrc_servlet_config.xml. Go into /mrcjava/WEB-INF/classes/DATADICTIONARY and rename mrc_servlet_config.xml to mrc_servlet_config_backup.xmlbackup. Now all you will need to do is compile any new or old application and a brand new mrc_servlet_config.xml will be added to your data dictionary folder. Following the instructions listed above will allow you to now enter in your mail server information.