DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Related

  • Mule CloudHub Connector: Part 1
  • MuleSoft Integration With RabbitMQ
  • How to Use Mulesoft VM Connector
  • Step-by-Step Guide to Use Anypoint MQ: Part 1

Trending

  • Navigating and Modernizing Legacy Codebases: A Developer's Guide to AI-Assisted Code Understanding
  • Dropwizard vs. Micronaut: Unpacking the Best Framework for Microservices
  • Building an AI/ML Data Lake With Apache Iceberg
  • Advancing Robot Vision and Control

Email Notification Using Anypoint Runtime Alerts and Cloudhub Connector

This article demonstrates how to create an email notification using the Cloudhub connector create-notification operation and Anypoint Runtime Alerts.

By 
Vikalp Bhalia user avatar
Vikalp Bhalia
DZone Core CORE ·
Jul. 27, 20 · Tutorial
Likes (3)
Comment
Save
Tweet
Share
10.0K Views

Join the DZone community and get the full member experience.

Join For Free

Email notification is the most common non-functional requirement in the integration projects and MuleSoft has an inbuilt capability to achieve this and no need to go for the SMTP server.

Below are the steps to create an email notification.

Create Notification

We can create a custom notification from any application using the Cloudhub connector's create-notification operation. Refer to the MuleSoft documentation for the Cloudhub connector configuration and operation details.
https://docs.mulesoft.com/cloudhub-connector/1.0/ 

The message field will contain the notification message and you can define the priority depending on the message.

Notification message

Once the notification is created, it will be visible on the runtime manager - click on the bell icon in the right corner.Runtime manager

Create Alerts

We can create alerts from the Alert tab present in the Runtime Manager.

Create alert

Click on the + sign present on the right corner to create an alert. You will see below window.

Create an alert

Select the condition as a "Custom application notification."

Refer the Alerts documentation on the MuleSoft documentation to create an alert depending on the business requirement.

You can create a generic alert for all applications or create separate alerts based on a logical grouping or any other criteria.

After completing the above 2 steps, you will start receiving an email whenever a notification is created for the configured application in the alert.

Notification

Looking at the email you may want to remove the header "Anypoint Platform Alert Notification" from the email.

To remove the header, you need to send HTML content in the message field of the create notification operation in step 1.

Heading

You can create an HTML template and use a parse-template to populate all the fields and pass it in the message field of the create notification operation. Refer parse template documentation:

https://docs.mulesoft.com/mule-runtime/4.3/parse-template-reference 

Limitations

  • Custom application notification is available only for the cloudhub applications.
  • Rate limiting on the Cloudhub APIs. Refer the documentation:
    https://docs.mulesoft.com/runtime-manager/alerts-on-runtime-manager#rate-limits-on-alerts 
Connector (mathematics) application

Opinions expressed by DZone contributors are their own.

Related

  • Mule CloudHub Connector: Part 1
  • MuleSoft Integration With RabbitMQ
  • How to Use Mulesoft VM Connector
  • Step-by-Step Guide to Use Anypoint MQ: Part 1

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!