Better control of Email subject and content for JRD Reports
Description
Environment
Acceptance / Success Criteria
Lucidchart Diagrams
Activity

Alan Evans November 30, 2010 at 2:47 PM
HI Donald,
One other thing I forgot to mention is that the report name is rather cumbersome.
It has the complete directory path embedded in the name (unlike the Early Morning Report which is just report.pdf)
_home_tacuser_opennms-1.8.6_opennms_target_opennms-1.8.6_share_reports_sample-usage-report20101130193700.pdf

Alan Evans November 30, 2010 at 2:42 PM
Hi Donald,
Yes it uses the body for "localhost" in javamail-configuration.xml
<sendmail-message to="root@localhost"
from="root@[127.0.0.1]"
subject="OpenNMS Test Message"
body="This is an OpenNMS Report." />
Does anything else use this entry or can I just modify it so that it's suitable for sending reports?
cheers
AlanE

Donald Desloge November 30, 2010 at 12:55 PM
Hi Alan,
Interesting, it looks like it is using the default sendmail config for the body. What happens when you change the body text in the default sendmail-config? There is a top level attribute that denotes the default one, should be default-send-config-name="localhost".
Donald

Alan Evans November 30, 2010 at 12:29 PM
Hi Donald,
It looks like this Override is not working quite right.
I receive emails with a Subject Line: OpenNMS Report: sample-usage-report but the body of the email says: This is an OpenNMS test message.
cheers
AlanE

Donald Desloge November 30, 2010 at 12:17 PM
Hi Alan,
The answer to your question is that it doesn't support that feature currently. It uses the default send config to send but override its subject and body.
Subject will is always overridden with "OpenNMS Report: " + report.getReportName()
And text is always overridden with "OpenNMS Report: " with an attachment.
Donald
Details
Assignee
UnassignedUnassignedReporter
Alan EvansAlan EvansLabels
Components
Affects versions
Priority
Minor
Details
Details
Assignee
Reporter

Labels
Components
Affects versions
Priority
PagerDuty
PagerDuty Incident
PagerDuty
PagerDuty Incident
PagerDuty

Hi Donald,
Happy Thanks Giving!
I'm looking at moving this feature into our production environment and can't seem to figure out the correct way to control the JavaMail Configuration settings.
I want to be able to control the E-Mail Subject and body.
Currently it seems to be using the "localhost" settings in javamail-configuration.xml but I can't figure out how it picks this up.
Can you point me in the right direction.
Thanks
AlanE