Generate email and SMS alerts based on Geofence alerts

In this example, we will show how to configure SMS and Email alerts when a vehicle gets outside a geofence.

Email notification setup

1. Login with the proper user into your Application and select Admin > Event Rules

2. Click on Add new Event Rule

3. Select Geofence Expression

blog_sms_email_notif_001a.png

Note that you will see in your list, geofence Groups, not individual geofences. 

blog_sms_email_notif_001.png

4. On 5.Notifications we will select Email as a notification type.

blog_sms_email_notif_002a.png

5. We will select one of our Tags as a recipient.

Select a tag where you know you have at least one user with an email in his properties. 

blog_sms_email_notif_002.png

6. Now is turn to customize the Subject of the email. Compose the subject with fixed text and variables of your choice.

blog_sms_email_notif_003.png

7. In the same way as the subject, you can customize the body of the email by adding your own text and variables.

blog_sms_email_notif_004.png

SMS notification setup

8. To add SMS as notification, select + and add SMS as a new notification type.

blog_sms_email_notif_005.png

9. In the same way that we customized the email notification, we can also compose the SMS notification.

blog_sms_email_notif_006.png

10. Click Next until you reach the end.

11. Click on Save to end the rule creation.

Result

In this example, when the vehicle got out of the geofence, a notification via SMS and e-mail has been sent to the recipient of the message (the operator with a valid phone number and email address).

blog_sms_email_notif_006b.png

SMS notification

Here you can see an example of how an SMS notification will look like for the recipient.

blog_sms_email_notif_007.jpg

E-mail notification

In the following screenshot, you can observe the email notification received by the recipient.

blog_sms_email_notif_009.png