- changed title to $HOST doesn't work for part of from: in mail-format configuration
$HOST doesn't work for part of from: in mail-format configuration
Issue #749
resolved
This works correctly substituting the host name in the from: email address
set mail-format {
from: monit <device@$HOST.domain.com>
subject: monit alert -- $SERVICE $EVENT
message: $SERVICE $EVENT
Date: $DATE
Action: $ACTION
Host: $HOST
Description: $DESCRIPTION
}
This does not work and the email from name appears as $HOST
set mail-format {
from: $HOST <device@$HOST.domain.com>
subject: monit alert -- $SERVICE $EVENT
message: $SERVICE $EVENT
Date: $DATE
Action: $ACTION
Host: $HOST
Description: $DESCRIPTION
}
Comments (2)
-
reporter -
repo owner - changed status to resolved
Fix Issue
#749: $HOST doesn't work in the "name" part of the "from:" in mail-format message→ <<cset b12dc2ace690>>
- Log in to comment