Send Email in Mule 4

 

MuleSoft flow can send email whenever required using email connector in Mule 4.

Create project in anypoint studio and configure the listener to trigger the request

Drag and drop the Email Connector Send operation from mule palette

Send Email

 

Configure the smtp connection as shown below

Send Email

 

Configure  fromAddress,toAddress,subject and content as payload

Send Email

 

Deploy project and trigger the request from soapui

 

Sample email

 

Email body

 

Sample application: send email sample application

  
Thank you for taking out time to read the above post. Hope you found it useful. In case of any questions, feel free to comment below. Also, if you are keen on knowing about a specific topic, happy to explore your recommendations as well.
 
For any latest updates or posts on our website, you can follow us on LinkedIn. Look forward to connecting with you there.


Share this:
Subscribe
Notify of
guest
3 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Amit
Amit
5 years ago

Hello Mulesy,
I am getting timeout exception when I demonstrate this poc.

anil
anil
4 years ago

Hi,
What is the Host and Port here i tried and got error

Makram Meksi
Makram Meksi
3 years ago

Not working Error while sending email: Couldn’t connect to host, port: mail.test.com, 3435; timeout 5000