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.
Specifies the sender's email address.
Specifies the recipient’s email address.
Specifies the email subject.
Specifies the IP address for the mail server.
Specifies the path and name for a file attachment.
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