SlideShare a Scribd company logo
Send email attachment using
SMTP in Mule ESB
What is Mule ESB ?
 Mule ESB is a lightweight Java-based
enterprise service bus (ESB) and
integration platform that allows
developers to connect applications
together quickly and easily, enabling
them to exchange data. Mule ESB
enables easy integration of existing
systems, regardless of the different
technologies that the applications use,
including JMS, Web Services, JDBC,
HTTP, and more.
 This example shows how we can send email
attachment using SMTP connector to self or
another email. We simply put a file in a source
directory and Mule will read the file from the
source directory. Using Mule ESB it’s very easy
to read the file from a location. If we had to read
the file using manual coding then we had to write
many lines of code. But using Mule ESB we just
simply put a file in a directory and let the Mule
know the file path and Mule does the rest of the
thing. You can put any kind of file to the source
for reading. The file that we put into a source
directory will be an attachment to the intended
recipient’s mail address. So finally when we will
see the file as an attachment in the mailbox.
What is Attachment
transformer ?
 Attachment transformer lets us attach
a file or document which will be sent to
the email address.
What is SMTP connector ?
 The SMTP endpoint allows Mule
messages to be sent as email or email
attachments with the Simple Mail
Transfer Protocol (SMTP) using Java
mail API.
Prerequisites
 Mule Studio 3.5.1
JDK 1.6
Maven 3
Mule Runtime 3.5.0 CE
Knowledge of XML
 Open Mule Studio and create a mule project.
Go to File->New->Mule Project. Now enter
the Project Name, selectRuntime – Mule
Server, check the check box for Use Maven.
Now enter the following information
 Group Id: your Mail(ex. gmail.com)
Artifact Id: project name – file-
attachment(automatically populated when
project name is getting typed)
V
 Click Next and verify project Location and
JRE/JDK are set correctly. Click
Finishersion: Mule studio generates default
 Now drag and drop the elements from right
side of the Mule studio as shown below in
the picture.
Send email attachment using smtp in mule esb
Browse and select the path from where a file will be read for an attachment.
Logger component properties
 File to String transformer properties
 File-to-Strong transformer just transforms
the file object to human readable string
format. We will not set any property for this
element
Attachment transformer properties
 Using attachment transformer we can set
payload from previous flow as an
attachment. We have to select Content
Type, operation as Set Attachment, Name,
Value
 SMTP connector properties
For SMTP connector we have to input email host, user name, password, port
under Basic Settings and To Address, From Address, Subject under Email
Information.
 The whole XML file of entire flow
 <?xml version="1.0" encoding="UTF-8"?>

 <mule xmlns:smtp="http://www.mulesoft.org/schema/mule/smtp"
 xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns="http://www.mulesoft.org/schema/mule/core"
 xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
 xmlns:spring="http://www.springframework.org/schema/beans" version="CE-3.5.0"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
 http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
 http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd
 http://www.mulesoft.org/schema/mule/smtp http://www.mulesoft.org/schema/mule/smtp/current/mule-smtp.xsd">
 <flow name="file-attachmentFlow1" doc:name="file-attachmentFlow1">
 <file:inbound-endpoint path="D:AnypointWorkspacesource"
 responseTimeout="10000" doc:name="File" />
 <logger message="#[payload]" level="INFO" doc:name="Logger" />
 <file:file-to-string-transformer
 doc:name="File to String" />
 <logger message="#[payload]" level="INFO" doc:name="Logger" />
 <set-attachment attachmentName="attachment" value="#[payload]"
 contentType="text/plain" doc:name="Attachment" />
 <logger message="#[payload]" level="INFO" doc:name="Logger" />
 <smtp:outbound-endpoint host="mail.domain.com"
 user="emailAddress@domain.com" password="password" to="emailAddress@domain.com"
 from="emailAddress@domain.com" subject="Test Email" responseTimeout="10000"
 doc:name="SMTP" />
 <logger message="#[payload]" level="INFO" doc:name="Logger" />
 </flow>
 </mule>
 Now create a text file called file-
attachment.txt and put it under selected path,
i.e., as per the above XML the file path
is D:AnypointWorkspacesource.
 Do right-click on file-attachment.xml and
click on Run As -> Mule Application with
Maven. Once the application up and running
you will get the console output and email
attachment in your mailbox where you have
sent the email.
 Output in console
 INFO 2015-03-05 09:25:46,372 [[file-
attachment].connector.file.mule.default.receiver.01]
org.mule.transport.file.FileMessageReceiver: Lock obtained on file:
D:AnypointWorkspacesourcefile-attachment.txt
 INFO 2015-03-05 09:25:46,404 [[file-attachment].file-
attachmentFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor:
org.mule.transport.file.ReceiverFileInputStream@6a150e
 INFO 2015-03-05 09:25:46,406 [[file-attachment].file-
attachmentFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor:
This is a file content
 INFO 2015-03-05 09:25:46,407 [[file-attachment].file-
attachmentFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor:
This is a file content
 INFO 2015-03-05 09:25:46,419 [[file-attachment].file-
attachmentFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor:
This is a file content
 INFO 2015-03-05 09:25:46,422 [[file-
attachment].connector.smtp.mule.default.dispatcher.01]
org.mule.transport.service.DefaultTransportServiceDescriptor: Loading default
outbound transformer:
org.mule.transport.email.transformers.ObjectToMimeMessage
 INFO 2015-03-05 09:25:46,428 [[file-
attachment].connector.smtp.mule.default.dispatcher.01]
org.mule.lifecycle.AbstractLifecycleManager: Initialising:
'connector.smtp.mule.default.dispatcher.1213248'. Object is:
SmtpMessageDispatcher
 Click on the attachment. You will see the
below output in the browser.

More Related Content

What's hot (20)

PPTX
Mule esb
chetan singhal
 
PPTX
Testing mule
Sindhu VL
 
PPTX
Elements in a mule flow
Sindhu VL
 
PPTX
Mule enterprise service introduction
Son Nguyen
 
PPTX
Mule concepts flows
kunal vishe
 
PPTX
Connectors in mule
Sindhu VL
 
PPTX
Webservice vm in mule
Praneethchampion
 
PPTX
Send email attachment using smtp in mule esb
Anand kalla
 
PPTX
Message properties component in mule
javeed_mhd
 
PPTX
Mule management console Architecture
Shanky Gupta
 
PPTX
Testing mule
Sindhu VL
 
PPTX
Mule Jetty transport
Ankush Sharma
 
PPT
Mule esb overview
Swami Satish
 
PPTX
Mule message
kunal vishe
 
PPTX
Mule requester
Sindhu VL
 
PPT
Mule anypoint exchange
D.Rajesh Kumar
 
PPTX
Mulesoft idempotent Message Filter
kumar gaurav
 
PPTX
Mule velocity
Praneethchampion
 
PPT
Mule ESB
niravn
 
PPTX
Mule esb mule message
sathyaraj Anand
 
Mule esb
chetan singhal
 
Testing mule
Sindhu VL
 
Elements in a mule flow
Sindhu VL
 
Mule enterprise service introduction
Son Nguyen
 
Mule concepts flows
kunal vishe
 
Connectors in mule
Sindhu VL
 
Webservice vm in mule
Praneethchampion
 
Send email attachment using smtp in mule esb
Anand kalla
 
Message properties component in mule
javeed_mhd
 
Mule management console Architecture
Shanky Gupta
 
Testing mule
Sindhu VL
 
Mule Jetty transport
Ankush Sharma
 
Mule esb overview
Swami Satish
 
Mule message
kunal vishe
 
Mule requester
Sindhu VL
 
Mule anypoint exchange
D.Rajesh Kumar
 
Mulesoft idempotent Message Filter
kumar gaurav
 
Mule velocity
Praneethchampion
 
Mule ESB
niravn
 
Mule esb mule message
sathyaraj Anand
 

Viewers also liked (20)

PPTX
Mule quartz
Praneethchampion
 
PPTX
Mmc rest api user groups
Praneethchampion
 
PPT
Mule security-jaas
Praneethchampion
 
PDF
CSP Review Report_Final (1)
Zachary (Eric) Cissna
 
PPTX
Mule soap
Praneethchampion
 
PPT
Mule security
Praneethchampion
 
PPTX
How to use expression filter
Praneethchampion
 
PPTX
Mapping and listing with mule
Praneethchampion
 
PPTX
Creating dynamic json in mule
Praneethchampion
 
PPTX
Introduction to mule esb
Praneethchampion
 
PPTX
Soap request in mule
Praneethchampion
 
PPT
Mule technology
Praneethchampion
 
PPT
Mule oracle connectors
Praneethchampion
 
PPT
Mule google connectors
Praneethchampion
 
PPT
Mule real-world-old
Praneethchampion
 
PPT
Mule anypoint exchange
Praneethchampion
 
PPTX
Documantation with mule
Praneethchampion
 
PPT
Mule batch processing
Praneethchampion
 
PPT
Anypoint data gateway
Praneethchampion
 
PPTX
xslt in mule
Praneethchampion
 
Mule quartz
Praneethchampion
 
Mmc rest api user groups
Praneethchampion
 
Mule security-jaas
Praneethchampion
 
CSP Review Report_Final (1)
Zachary (Eric) Cissna
 
Mule soap
Praneethchampion
 
Mule security
Praneethchampion
 
How to use expression filter
Praneethchampion
 
Mapping and listing with mule
Praneethchampion
 
Creating dynamic json in mule
Praneethchampion
 
Introduction to mule esb
Praneethchampion
 
Soap request in mule
Praneethchampion
 
Mule technology
Praneethchampion
 
Mule oracle connectors
Praneethchampion
 
Mule google connectors
Praneethchampion
 
Mule real-world-old
Praneethchampion
 
Mule anypoint exchange
Praneethchampion
 
Documantation with mule
Praneethchampion
 
Mule batch processing
Praneethchampion
 
Anypoint data gateway
Praneethchampion
 
xslt in mule
Praneethchampion
 
Ad

Similar to Send email attachment using smtp in mule esb (20)

PPTX
Send email attachment using smtp in mule esb
RaviShankar Mishra
 
PPTX
Email using mule
Manav Prasad
 
PPTX
Email configuration in mule esb
Vamsi Krishna
 
PPTX
SMTP MULE
Rajkumar Epari
 
PPTX
How to use smtp endpoint
sivachandra mandalapu
 
ODP
Mule ESB SMTP Connector Integration
AnilKumar Etagowni
 
ODP
Mule smtp connector
Krishnakanth Goud
 
PPTX
How to use attachment transformer
sivachandra mandalapu
 
PPTX
Sending mail with attachment
Anirban Sen Chowdhary
 
PDF
MuleSoft Surat Live Demonstration Virtual Meetup#3 - Building JWT OAuth 2.0 C...
Jitendra Bafna
 
PPTX
Sending mail in mule
Son Nguyen
 
PPTX
Imap connector
prudhvivreddy
 
PPTX
File component in mule demo
Sudha Ch
 
PPTX
Imap connector
kiranvanga
 
PPTX
File Connector
Thang Loi
 
PPTX
File connector
Thang Loi
 
PPTX
File component
Durga Prasad Kakarla
 
PPTX
Integration with Dropbox using Mule ESB
Rupesh Sinha
 
PDF
Mule ESB Interview or Certification questions
TechieVarsity
 
PPTX
File component
Sunil Komarapu
 
Send email attachment using smtp in mule esb
RaviShankar Mishra
 
Email using mule
Manav Prasad
 
Email configuration in mule esb
Vamsi Krishna
 
SMTP MULE
Rajkumar Epari
 
How to use smtp endpoint
sivachandra mandalapu
 
Mule ESB SMTP Connector Integration
AnilKumar Etagowni
 
Mule smtp connector
Krishnakanth Goud
 
How to use attachment transformer
sivachandra mandalapu
 
Sending mail with attachment
Anirban Sen Chowdhary
 
MuleSoft Surat Live Demonstration Virtual Meetup#3 - Building JWT OAuth 2.0 C...
Jitendra Bafna
 
Sending mail in mule
Son Nguyen
 
Imap connector
prudhvivreddy
 
File component in mule demo
Sudha Ch
 
Imap connector
kiranvanga
 
File Connector
Thang Loi
 
File connector
Thang Loi
 
File component
Durga Prasad Kakarla
 
Integration with Dropbox using Mule ESB
Rupesh Sinha
 
Mule ESB Interview or Certification questions
TechieVarsity
 
File component
Sunil Komarapu
 
Ad

More from Praneethchampion (13)

PPT
Mule execution
Praneethchampion
 
PPTX
Mule soa
Praneethchampion
 
PPTX
Mule esb stripe
Praneethchampion
 
PPTX
Dataweave
Praneethchampion
 
PPTX
Mule for each scope header collection
Praneethchampion
 
PPT
Mule esb api layer
Praneethchampion
 
PPTX
Groovy in Mule
Praneethchampion
 
PPTX
Scatter gather flow in mule
Praneethchampion
 
PPTX
Mule rabbitmq
Praneethchampion
 
PPTX
Mule drools
Praneethchampion
 
PPTX
Mule esb DataWeave
Praneethchampion
 
PPTX
Idempotent filter in mule
Praneethchampion
 
Mule execution
Praneethchampion
 
Mule esb stripe
Praneethchampion
 
Dataweave
Praneethchampion
 
Mule for each scope header collection
Praneethchampion
 
Mule esb api layer
Praneethchampion
 
Groovy in Mule
Praneethchampion
 
Scatter gather flow in mule
Praneethchampion
 
Mule rabbitmq
Praneethchampion
 
Mule drools
Praneethchampion
 
Mule esb DataWeave
Praneethchampion
 
Idempotent filter in mule
Praneethchampion
 

Recently uploaded (20)

PDF
introduction to computer hardware and sofeware
chauhanshraddha2007
 
PPTX
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PPTX
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
PDF
Build with AI and GDG Cloud Bydgoszcz- ADK .pdf
jaroslawgajewski1
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
introduction to computer hardware and sofeware
chauhanshraddha2007
 
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Market Insight : ETH Dominance Returns
CIFDAQ
 
Build with AI and GDG Cloud Bydgoszcz- ADK .pdf
jaroslawgajewski1
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
The Future of Artificial Intelligence (AI)
Mukul
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 

Send email attachment using smtp in mule esb

  • 1. Send email attachment using SMTP in Mule ESB
  • 2. What is Mule ESB ?  Mule ESB is a lightweight Java-based enterprise service bus (ESB) and integration platform that allows developers to connect applications together quickly and easily, enabling them to exchange data. Mule ESB enables easy integration of existing systems, regardless of the different technologies that the applications use, including JMS, Web Services, JDBC, HTTP, and more.
  • 3.  This example shows how we can send email attachment using SMTP connector to self or another email. We simply put a file in a source directory and Mule will read the file from the source directory. Using Mule ESB it’s very easy to read the file from a location. If we had to read the file using manual coding then we had to write many lines of code. But using Mule ESB we just simply put a file in a directory and let the Mule know the file path and Mule does the rest of the thing. You can put any kind of file to the source for reading. The file that we put into a source directory will be an attachment to the intended recipient’s mail address. So finally when we will see the file as an attachment in the mailbox.
  • 4. What is Attachment transformer ?  Attachment transformer lets us attach a file or document which will be sent to the email address.
  • 5. What is SMTP connector ?  The SMTP endpoint allows Mule messages to be sent as email or email attachments with the Simple Mail Transfer Protocol (SMTP) using Java mail API.
  • 6. Prerequisites  Mule Studio 3.5.1 JDK 1.6 Maven 3 Mule Runtime 3.5.0 CE Knowledge of XML
  • 7.  Open Mule Studio and create a mule project. Go to File->New->Mule Project. Now enter the Project Name, selectRuntime – Mule Server, check the check box for Use Maven. Now enter the following information  Group Id: your Mail(ex. gmail.com) Artifact Id: project name – file- attachment(automatically populated when project name is getting typed) V  Click Next and verify project Location and JRE/JDK are set correctly. Click Finishersion: Mule studio generates default
  • 8.  Now drag and drop the elements from right side of the Mule studio as shown below in the picture.
  • 10. Browse and select the path from where a file will be read for an attachment. Logger component properties
  • 11.  File to String transformer properties  File-to-Strong transformer just transforms the file object to human readable string format. We will not set any property for this element Attachment transformer properties
  • 12.  Using attachment transformer we can set payload from previous flow as an attachment. We have to select Content Type, operation as Set Attachment, Name, Value
  • 13.  SMTP connector properties For SMTP connector we have to input email host, user name, password, port under Basic Settings and To Address, From Address, Subject under Email Information.
  • 14.  The whole XML file of entire flow  <?xml version="1.0" encoding="UTF-8"?>   <mule xmlns:smtp="http://www.mulesoft.org/schema/mule/smtp"  xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns="http://www.mulesoft.org/schema/mule/core"  xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"  xmlns:spring="http://www.springframework.org/schema/beans" version="CE-3.5.0"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd  http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd  http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd  http://www.mulesoft.org/schema/mule/smtp http://www.mulesoft.org/schema/mule/smtp/current/mule-smtp.xsd">  <flow name="file-attachmentFlow1" doc:name="file-attachmentFlow1">  <file:inbound-endpoint path="D:AnypointWorkspacesource"  responseTimeout="10000" doc:name="File" />  <logger message="#[payload]" level="INFO" doc:name="Logger" />  <file:file-to-string-transformer  doc:name="File to String" />  <logger message="#[payload]" level="INFO" doc:name="Logger" />  <set-attachment attachmentName="attachment" value="#[payload]"  contentType="text/plain" doc:name="Attachment" />  <logger message="#[payload]" level="INFO" doc:name="Logger" />  <smtp:outbound-endpoint host="mail.domain.com"  user="[email protected]" password="password" to="[email protected]"  from="[email protected]" subject="Test Email" responseTimeout="10000"  doc:name="SMTP" />  <logger message="#[payload]" level="INFO" doc:name="Logger" />  </flow>  </mule>
  • 15.  Now create a text file called file- attachment.txt and put it under selected path, i.e., as per the above XML the file path is D:AnypointWorkspacesource.  Do right-click on file-attachment.xml and click on Run As -> Mule Application with Maven. Once the application up and running you will get the console output and email attachment in your mailbox where you have sent the email.
  • 16.  Output in console  INFO 2015-03-05 09:25:46,372 [[file- attachment].connector.file.mule.default.receiver.01] org.mule.transport.file.FileMessageReceiver: Lock obtained on file: D:AnypointWorkspacesourcefile-attachment.txt  INFO 2015-03-05 09:25:46,404 [[file-attachment].file- attachmentFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: org.mule.transport.file.ReceiverFileInputStream@6a150e  INFO 2015-03-05 09:25:46,406 [[file-attachment].file- attachmentFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: This is a file content  INFO 2015-03-05 09:25:46,407 [[file-attachment].file- attachmentFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: This is a file content  INFO 2015-03-05 09:25:46,419 [[file-attachment].file- attachmentFlow1.stage1.02] org.mule.api.processor.LoggerMessageProcessor: This is a file content  INFO 2015-03-05 09:25:46,422 [[file- attachment].connector.smtp.mule.default.dispatcher.01] org.mule.transport.service.DefaultTransportServiceDescriptor: Loading default outbound transformer: org.mule.transport.email.transformers.ObjectToMimeMessage  INFO 2015-03-05 09:25:46,428 [[file- attachment].connector.smtp.mule.default.dispatcher.01] org.mule.lifecycle.AbstractLifecycleManager: Initialising: 'connector.smtp.mule.default.dispatcher.1213248'. Object is: SmtpMessageDispatcher
  • 17.  Click on the attachment. You will see the below output in the browser.