subjectText¶
Sets a fixed subject line instead of generating one from a template.
This parameter applies to ommail: Mail Output Module.
- Name:
subjectText
- Scope:
input
- Type:
string
- Default:
input=none
- Required?:
no
- Introduced:
8.5.0
Description¶
Use this parameter to set a constant subject text. Choose
subjectTemplate when the subject should be generated from a
template. The subjectTemplate and subjectText parameters cannot both
be configured within a single action. If neither is specified, a default,
non-configurable subject line will be generated.
Input usage¶
module(load="ommail")
action(
type="ommail"
server="mail.example.net"
port="25"
mailFrom="rsyslog@example.net"
mailTo="operator@example.net"
subjectText="rsyslog detected disk problem"
)
See also¶
See also ommail: Mail Output Module.
Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project
Contributing: Source & docs: rsyslog source project
© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.