-
-
Notifications
You must be signed in to change notification settings - Fork 494
Notify_sendpulse
- Source: https://sendpulse.com/
- Icon Support: no
- Attachment Support: yes
- Message Format: Text
- Message Limit: 32768 Characters per message
Once you have an account and access to your dashboard. You will need to ensure you acquire your Client ID and Client Secret in order to construct the Apprise URLs
Valid syntaxes are as follows:
{schema}://{user}@{host}/{client_id}/{client_secret}
{schema}://{user}@{host}/{client_id}/{client_secret}/{to_email}
{schema}://{user}@{host}/{client_id}/{client_secret}/{to_email1}/{to_email2}/{to_email3}
Template support is also supported as well, You just need to specify the integer assigned to it as part of the URL:
{schema}://{user}@{host}/{client_id}/{client_secret}/:{to_email}?template={temlate_int}
If you want to take advantage of the dynamic_template_data
variables, just create arguments prefixed with a plus (+); for example:
sendpulse://{user}@{host}/{client_id}/{client_secret}/{to_email}?template={template_int}&+{sub1}=value&+{sub2}=value2
Variable | Required | Description |
---|---|---|
user | Yes | Combined with the host , it constructs the email address you have configured with your SendPulse account. |
host | Yes | Combined with the user , it constructs the email address you have configured with your SendPulse account. |
client_id | Yes | The Client ID associated with your SendPulse account. |
client_secret | Yes | The Client Secret associated with your SendPulse account. |
from | No | You can optionally identify who the email is from if you wish. |
to_email | No | This is the email address will identify the email's destination (the To address). If one isn't specified then the from_email is used instead. |
template | No | You may optionally specify the integer of a previously generated SendPulse template to base the email on. |
cc | No | The Carbon Copy (CC:) portion of the email. This is entirely optional. |
bcc | No | The Blind Carbon Copy (BCC:) portion of the email. |
Apprise has template support for SendPulse. Just define the ?template=
and the optional arguments you want to set. You can identify and set these variables using Apprise by simply sticking a plus (+) in front of any parameter you specify on your URL string.
Consider the following template: 1234
An Apprise URL might look like:
sendpulse://user@example.com?template=1234&+what=templates&+app=Apprise
Send a SendPulse notification:
# Assuming our {user} is user@example.com
# Assuming our {client_id} is client_id
# Assuming our {client_secret} is client_secret
# Assuming we want to send an email to target@example.com
# Assuming our {to_email} is someone@microsoft.com
apprise -vv -t "Test Message Title" -b "Test Message Body" \
sendpulse:///user@example.com/client_id/client_secret/target@example.com