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

Configure the smtp connection as shown below

Configure fromAddress,toAddress,subject and content as payload

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.
Hello Mulesy,
I am getting timeout exception when I demonstrate this poc.
Hi,
What is the Host and Port here i tried and got error
Not working Error while sending email: Couldn’t connect to host, port: mail.test.com, 3435; timeout 5000