For this use logger:
logger [options] message
-p FACILITY.SEVERITY, defaults to user.notice if not specified -t TAG
logger -p mail.info -t mailtest "Test"