Send Email With Attachment


Email connector can send email with attachment in MuleSoft. we can create different type of attachment payload using dataweave transformation and then send it as email attachment.

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 With Attachment


Configure the smtp connection as shown below

Send Email With Attachment


Create the data to send csv as attachment

Send Email With Attachment


Configure fromAddress, toAddress and subject

Send Email With Attachment


Configure attachment


Deploy the project and trigger from soapui

Sample email received with attachment


Sample application: emailattachment 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:
Notify of
Inline Feedbacks
View all comments