SlideShare a Scribd company logo
How to use SMTP endpoint
16-05-2015
Abstract
• The main motto of this PPT is How to use
SMTP endpoint in our applications.
Introduction
• The SMTP transport can be used for sending
messages over SMTP using thejavax.mail API. The
implementation supports CC/BCC/ReplyTo
addresses, attachments and custom Header
properties. It also provides support
forjavax.mail.Message transformation. The
SMTPS connector enables SMTP over SSL using
the javax.mail APIs. It supports all the elements
and attributes of the SMTP transport, plus some
required properties for setting up the client key
store and the trust store for the SSL connection.
Example
.mflow
• <?xml version="1.0" encoding="UTF-8"?>
• <mule xmlns:smtp="http://www.mulesoft.org/schema/mule/smtp"
xmlns:http="http://www.mulesoft.org/schema/mule/http" 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="EE-3.4.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/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
• http://www.mulesoft.org/schema/mule/smtp http://www.mulesoft.org/schema/mule/smtp/current/mule-
smtp.xsd">
• <smtp:gmail-connector name="Gmail" validateConnections="true" doc:name="Gmail"/>
• <flow name="SMTPFlow1" doc:name="SMTPFlow1">
• <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8087" path="smtp"
doc:name="HTTP"/>
• <logger message="--Entered into the flow" level="INFO" doc:name="Logger"/>
• <set-payload value="Hai Friend" doc:name="Set Payload"/>
• <smtp:outbound-endpoint host="smtp.gmail.com" port="587" user=“****%40gmail.com" password=“****"
to=“****@gmail.com" from=“****@gmail.com" subject="Hai" responseTimeout="10000" connector-ref="Gmail"
doc:name="SMTP"/>
• </flow>
• </mule>
• Output:
• Email will come to your inbox
• Flow of execution:
1. URL to trigger the service from browser
http://localhost:8087/smtp
2. Email will come to to-email address with the
payload in set-payload component as body and
subject in the SMTP component as mail subject
References
• https://docs.mulesoft.com/mule-user-
guide/v/3.7/smtp-transport-reference

More Related Content

PPTX
Mule Message Properties Component
PPTX
Message properties component in mule demo
PPTX
Expression filter in Mule
PPTX
How to use splitter component
PPTX
Choice component in mule demo
PPTX
Message properties component in mule
PPTX
Message properties component in mule
PPTX
Expression filter in Mule
Mule Message Properties Component
Message properties component in mule demo
Expression filter in Mule
How to use splitter component
Choice component in mule demo
Message properties component in mule
Message properties component in mule
Expression filter in Mule

What's hot (17)

PPTX
Using XSLT in Mule
PPTX
Filter expression in mule
PPTX
Configurare http mule
PPTX
File component in mule
PPTX
Mule message processor or routers
PPTX
Mule property placeholder
PPTX
Until successful component in mule demo
PPTX
File component in mule demo
PPTX
Mule esb
PPTX
Database component in mule
PPTX
Mule concepts connectors
PPTX
Until successful component in mule
PPTX
Basic example using for each component
PPTX
xslt in mule
PPTX
Choice component in mule
PPTX
How to use processor chain
PPTX
Introduction to mule esb
Using XSLT in Mule
Filter expression in mule
Configurare http mule
File component in mule
Mule message processor or routers
Mule property placeholder
Until successful component in mule demo
File component in mule demo
Mule esb
Database component in mule
Mule concepts connectors
Until successful component in mule
Basic example using for each component
xslt in mule
Choice component in mule
How to use processor chain
Introduction to mule esb
Ad

Viewers also liked (20)

PPTX
Validate json schema
PPTX
How to use splitter component
PPTX
How to use composite source
PPTX
Bean as Datasource
PPTX
How to use poll scope
PPTX
PPTX
How to use IMAP endpoint
PPTX
PPTX
How to use jms outbound endpoint
PPTX
Dockerizing mule soft esb
PPTX
Cloud hub deployment
PPTX
Integrate mule esb with microsoft office 365 share point
PPTX
Securing api with_o_auth2
PPTX
How to use parse template
PPTX
How to read json message payload
PPTX
How to use message enricher
PPTX
How to use attachment transformer
PPTX
Specifying a default exception strategy
PPTX
How to use web service consumer
Validate json schema
How to use splitter component
How to use composite source
Bean as Datasource
How to use poll scope
How to use IMAP endpoint
How to use jms outbound endpoint
Dockerizing mule soft esb
Cloud hub deployment
Integrate mule esb with microsoft office 365 share point
Securing api with_o_auth2
How to use parse template
How to read json message payload
How to use message enricher
How to use attachment transformer
Specifying a default exception strategy
How to use web service consumer
Ad

Similar to How to use smtp endpoint (20)

PPTX
SMTP MULE
PPTX
Email using mule
PPTX
Send email attachment using smtp in mule esb
PPTX
Send email attachment using smtp in mule esb
PPTX
Send email attachment using smtp in mule esb
PPTX
Send email attachment using smtp in mule esb
PPTX
Send email attachment using smtp in mule esb
PPTX
Send email attachment using smtp in mule esb
PPTX
Send email attachment using smtp in mule esb
PPTX
Email configuration in mule esb
PPTX
How to use SFTP
ODP
Mule ESB SMTP Connector Integration
ODP
Mule smtp connector
ODP
Mule Complete Training
PPSX
SMTP(simple mail transfer protocol).ppsx
PPT
SMTP(true)
PPTX
Imap connector
PPTX
Imap connector
PPT
Mail services
SMTP MULE
Email using mule
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
Email configuration in mule esb
How to use SFTP
Mule ESB SMTP Connector Integration
Mule smtp connector
Mule Complete Training
SMTP(simple mail transfer protocol).ppsx
SMTP(true)
Imap connector
Imap connector
Mail services

More from sivachandra mandalapu (20)

PPTX
Mock component in munit
PPTX
Jms selector
PPTX
PPTX
Object store
PPTX
How to use secure property placeholder
PPTX
Defining global exception strategies
PPTX
Reference exception strategy
PPTX
PPTX
Property place holder
PPTX
Collection aggregator
PPTX
Deployment options for mule applications
PPTX
Setting up organization with api access
PPTX
API gateway setup
PPTX
PPTX
Synchronous communication using jms back channel
PPTX
PPTX
PPTX
Wildcard Filter
PPTX
Soap Component
PPTX
Rest Component
Mock component in munit
Jms selector
Object store
How to use secure property placeholder
Defining global exception strategies
Reference exception strategy
Property place holder
Collection aggregator
Deployment options for mule applications
Setting up organization with api access
API gateway setup
Synchronous communication using jms back channel
Wildcard Filter
Soap Component
Rest Component

Recently uploaded (20)

PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Complications of Minimal Access Surgery at WLH
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Classroom Observation Tools for Teachers
PPTX
Institutional Correction lecture only . . .
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Lesson notes of climatology university.
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Insiders guide to clinical Medicine.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Microbial diseases, their pathogenesis and prophylaxis
Complications of Minimal Access Surgery at WLH
Sports Quiz easy sports quiz sports quiz
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Classroom Observation Tools for Teachers
Institutional Correction lecture only . . .
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Renaissance Architecture: A Journey from Faith to Humanism
Lesson notes of climatology university.
human mycosis Human fungal infections are called human mycosis..pptx
Insiders guide to clinical Medicine.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
GDM (1) (1).pptx small presentation for students
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Cell Types and Its function , kingdom of life
102 student loan defaulters named and shamed – Is someone you know on the list?
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx

How to use smtp endpoint

  • 1. How to use SMTP endpoint 16-05-2015
  • 2. Abstract • The main motto of this PPT is How to use SMTP endpoint in our applications.
  • 3. Introduction • The SMTP transport can be used for sending messages over SMTP using thejavax.mail API. The implementation supports CC/BCC/ReplyTo addresses, attachments and custom Header properties. It also provides support forjavax.mail.Message transformation. The SMTPS connector enables SMTP over SSL using the javax.mail APIs. It supports all the elements and attributes of the SMTP transport, plus some required properties for setting up the client key store and the trust store for the SSL connection.
  • 5. .mflow • <?xml version="1.0" encoding="UTF-8"?> • <mule xmlns:smtp="http://www.mulesoft.org/schema/mule/smtp" xmlns:http="http://www.mulesoft.org/schema/mule/http" 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="EE-3.4.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/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd • http://www.mulesoft.org/schema/mule/smtp http://www.mulesoft.org/schema/mule/smtp/current/mule- smtp.xsd"> • <smtp:gmail-connector name="Gmail" validateConnections="true" doc:name="Gmail"/> • <flow name="SMTPFlow1" doc:name="SMTPFlow1"> • <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8087" path="smtp" doc:name="HTTP"/> • <logger message="--Entered into the flow" level="INFO" doc:name="Logger"/> • <set-payload value="Hai Friend" doc:name="Set Payload"/> • <smtp:outbound-endpoint host="smtp.gmail.com" port="587" user=“****%40gmail.com" password=“****" to=“****@gmail.com" from=“****@gmail.com" subject="Hai" responseTimeout="10000" connector-ref="Gmail" doc:name="SMTP"/> • </flow> • </mule>
  • 6. • Output: • Email will come to your inbox
  • 7. • Flow of execution: 1. URL to trigger the service from browser http://localhost:8087/smtp 2. Email will come to to-email address with the payload in set-payload component as body and subject in the SMTP component as mail subject