How to send an email from the Hipchat Server terminal
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the server and data center platforms.
Purpose
To describe methods by which email can be sent from the Hipchat Server terminal/command-line interface.
Solution
Hipchat Server includes a Postfix mail environment, which uses the sendmail command. To send an email using this command:
Generate an email using vim or nano with the following format:
To: <toAddressGoesHere>
Subject: <emailSubjectGoesHere>
<MessageBodyGoesHere>
Please note that the "To:" address defined above will not determine where the email is sent - it only modifies the appearance of the email in the recipients inbox.Use the following command to send the message:
sendmail email@example.com < <messageFile>