Search code examples
oracle-databaseosb

Customize OSB Mail alert body content


I am using Mail as alert-destination in OSB. From proxy service I am calling the alert destination and mail is being sent successfully.

However, the mail content is showing the details of service, destination, timestamp, server name etc details.

I just want to have the payload information in the mail body.

Is therey any way to customize the mail body when adding alert action in a proxy service?

Thanks in advance


Solution

  • The Alert action is very basic, and the email destination isn't really designed to be consumed by humans directly.

    You're probably better off alerting to a JMS destination, then dequeuing it using a proxy to transform it into exactly what you want, then route to an SMTP Messaging business service to deliver the email (presumably formatted in HTML).