Skip to content
sindrel created page: send authored by Sindre's avatar Sindre
# Send messages #
To send outgoing messages, execute a HTTP GET request to the send.php file in your public web folder, passing parameters in the URL:
<br>
>https://&lt;baseurl>/send.php?user=&lt;username>&password=&lt;password>&to=&lt;recipient>&message=&lt;message>
<br>
This can easily be done from a browser, or automated using scripts. It can also be used for alerting, i.e. from system monitoring tools such as Solarwinds Orion, Nagios, LibreNMS etc.
<br><br>
<table border="1">
<tr>
<td>Username</td>
<td>Your configured username</td>
</tr>
<tr>
<td>Password</td>
<td>Your configured password</td>
</tr>
<tr>
<td>Recipient</td>
<td>The phone number of the recipient</td>
</tr>
<tr>
<td>Message</td>
<td>The text message you wish to send</td>
</tr>
</table>
<br>
**Generic example**
<br>
https://example.com/send.php?user=albert&password=pizza&to=4712345678&message=A%20message%20to%20you
<br><br>
**LibreNMS example (API Transport)**
<br>
https://example.com/sms/send.php?user=albert&password=pizza&to=4712345678&message=%timestamp%0A%hostname%20%location:%0A%name%20%3D%20%state.%0ATime%20elapsed:%20%elapsed.%0AId:%20%uid
\ No newline at end of file