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
Configure the smtp connection as shown below
Create the data to send csv as attachment
Configure fromAddress, toAddress and subject
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.