Customizing Notifications Using Email Headers

You can customize different aspects of the generated notifications by passing us some custom email headers. The implementation depends on your programming language or CMS. For example, here is how to add custom headers in Ruby on Rails

X-MagicBell-Notification-Title
Set this header to add a title different from the subject of the email

X-MagicBell-Notification-ActionUrl
We automatically parse the first URL in the body of the email and save it as the ActionUrl but if you want to pass a different Url, set this custom header

X-MagicBell-Notification-Metadata
A JSON encoded string that is passed to your callback function, if you have defined one when initializing the JS widget. This helps you implement a custom action or redirect when the notification is clicked. Especially useful for single page applications.