To send emails from the CLI, use the mailclt utility. It is located at /opt/phion/bin. It is an internal mail client that you can use to distribute reports that are generated by specific services. For example, you can send reports that are generated by the Revision Control System.
List of all mailclt options:
[root@bart:/opt/phion/bin]# mailclt -f sender -r recipient -s subject -m mailserver-IP TEXT -a attachment -t textfile
The following sections provide more information on the options that you can use with mailclt.
-f <sender address>
Specifies the sender's email address.
-r <recipient address>
Specifies the recipient’s email address.
Specifies the email subject.
-m <mail server IP address>
Specifies the IP address for the mail server.
-a <path to attachment>
Specifies the path and name for a file attachment.
-t <text file>
Specifies a text file.
IP address, but NOT the MX record of a reachable SMTP server because DNS resolution is not supported by mailclt.
[root@bart:/]# /opt/phion/bin/mailclt -f email@example.com -r firstname.lastname@example.org -s "Mail Subject" -m 10.0.8.112 "This is the email content" -a /home/username/image.gif -t /home/username/file.txt