MuleSoft AnyPoint Platform provides various components as part of Mail Module for sending and receiving email messages using SMTP, POP3 and IMAP. Sending Emails in Message Flows using Email Connectors is often required as part of different use cases. In this MuleSoft Email Tutorial , I have explained how we can send email with attachment from MuleSoft Message Flows by using Gmail SMTP.
MuleSoft GMail SMTP Send Email With Attachment Video Tutorial
In this video tutorial, I have implemented following sceanrio:
- A Mule Application is created with REST Service which will receive a file name as query parameter.
- File will be read from the file system based on provided file name.
- Gmail SMTP will be configured to Send Email.
- Email will be sent with file content as an attachment.
- File Content will be returned in response body as well for HTTP Response to the REST Service.
Watch the tutorial below on YouTube Channel of TutorialsPedia and don’t forget to subscribe to the channel.
If you have any questions or need any further help, feel free to comment below.
if we have to send mails daily automatically after job completes then we have to keep that less secure ON in gmail account but its not safe, so our data also wont be safe. Then how to send mails automatically and securely.
And how we can send mail to outlook. please prepare mail on that also.