[rsyslog-notify] Forum Thread: Re: ommail doesn't send body - (Mode 'reply')
noreply at adiscon.com
noreply at adiscon.com
Thu Sep 8 20:52:37 CEST 2016
User: Butch
Forumlink: http://kb.monitorware.com/viewtopic.php?p=26929#p26929
Message:
----------
I've answered my own question.
The documentation suggests that the body is enabled by deafualt, in my case
it doesn't seem it is.
I've now enabled it and specified a body template as below and all is
working.
template (name="mailBodyt" type="string" string="RSYSLOG
Alert\\n\\nmsg='%msg%'")
template (name="mailSubjectt" type="string" string="Test Message from:
%syslogtag%")
if $msg contains "Test Connection" then {
# action(type="ommail" server="blank" port="25"
action(type="ommail" server="localhost" port="25"
mailfrom="outgoing email"
mailto=["myemail"]
subject.template="mailSubjectt"
template="mailBodyt"
body.enable="on")
}
More information about the rsyslog-notify
mailing list