SlideShare a Scribd company logo
1 of 12
POP and IMAP mail protocol and
implementation with ColdFusion
 POP – Post Office Protocol.
 IMAP – Internet Message Access Protocol
 POP implementation with Coldfusion.
 IMAP implementation with Coldfusion.
POP – Post Office Protocol
 The Post Office Protocol (POP) is an application-layer Internet standard protocol
used by local e-mail clients to retrieve e-mail from a remote server over a TCP/IP
connection.
 POP allows the user to download messages one at a time and only deletes them
from the server after they have been successfully saved on local storage.
 It is possible to leave messages on the server to permit another user to access
them.
 There is no provision for flagging a specific message as seen, answered,
or forwarded.
 Thus POP is not convenient for users who access the same mail from different
machines or users.
 The POP protocol has been developed through several versions, with version 3
(POP3) being the current standard.
Advantages & Disadvantages of
POP
 Advantages
◦ Once all emails downloaded, you can view your email anytime you want on your
personal computer, even if you are NOT connected to the Internet.
◦ Emails are stored on your hard drive so they're not subject to server storage limits.
◦ POP is widely supported by Internet Service Providers(ISPs) and email providers.
 Disadvantages
◦ Emails are stored on your hard drive so they're not accessible from other computers.
◦ Once email is downloaded, it will not be available at other computers unless you
configure your email client to leave mail on the server. If email is left on the server, it
is more difficult to tell which emails you have read/not read when accessing from
another computer. You also will not be able to organize your email on the server.
◦ Since email is stored directly on your hard drive, if you have a hard drive failure your
messages will be lost.
◦ It is also more difficult to change email clients. (such as Eudora or Outlook) since
you will need to import/export mail into the new email client.
Internet Message Access
Protocol
 IMAP (Internet Message Access Protocol) is a standard protocol for
accessing e-mail from a remote server.
 In IMAP, You can also create and manipulate multiple folders or mailboxes on
the server, delete messages, or search for certain parts. or an entire note.
 IMAP is designed for the situation where you need to work with your email
from multiple computers, such as your workstation at work, your desktop
computer at home, or a laptop computer while traveling.
 There is provision for flagging a specific message as seen, answered,
or forwarded.
 The current version, IMAP version 4 revision 1 (IMAP4rev1).
Advantages & Disadvantages of
IMAP
 Advantages
◦ Messages are stored on the server are accessible from any computer and webmail
anywhere in the world.
◦ All email is stored and accessed directly from the server. If you happen to have a
hard drive crash or change email clients, your email will still be accessible when
using another computer.
◦ Since email stored on server it is easy to change email clients.
◦ Sent emails and drafts are also stored on the server.
 Disadvantages
◦ IMAP requires continual access to the server during the time that you are working
with your mail.
◦ Very few ISPs and email providers offer IMAP as it is considered a high end option
and it's complex for them to support.
Implementation with
ColdFusion
CFPOP
<cfpop server = "server name"
action = "getHeaderOnly|getAll|delete"
attachmentPath = "path"
debug = "yes|no"
generateUniqueFilenames = "yes|no"
maxRows = "number"
messageNumber = "number"
name = "query name"
password = "password"
port = "port number"
startRow = "number"
timeout = "seconds"
uid = "number"
username = "user name">
CFPOP
Column name getHeaderOnly returns getAll returns
Date yes yes
From yes yes
Messagenumber yes yes
Messageid yes yes
Replyto yes yes
Subject yes yes
Cc yes yes
To yes yes
Body no yes
textBody no yes
HTMLBody no yes
Header yes yes
Attachments no yes
Attachmentfiles no yes
UID yes yes
Cids no yes
CFIMAP
<cfimap action = “delete | deletefolder | createfolder | open | close | renamefolder |
listallfolders | markread | movemail | getall | getheaderonly"
attachmentpath = "string"
connection = "string"
folder = "string"
generateuniquefilenames = "yes|no"
maxrows = "integer"
messagenumber ="integer"
name = "string"
newfolder = "string"
password = "string"
port = "integer"
recurse = "true|false"
secure = "yes|no"
server = "IMAP server address"
startrow = "integer"
stoponerror = "true|false"
uid = "integer or comma-delimited list of integers"
username = “username">
CFIMAP
POP & IMAP with JAVA Mail
API
Thank You

More Related Content

What's hot

retrieving the mail
retrieving the mailretrieving the mail
retrieving the mailtumetr1
 
connectivity utility
connectivity utilityconnectivity utility
connectivity utilitytumetr1
 
10135 a 05
10135 a 0510135 a 05
10135 a 05Bố Su
 
Email server system1.ppt
Email server system1.pptEmail server system1.ppt
Email server system1.pptPooja Ladda
 
Mail server using Linux(Ubuntu)
Mail server using Linux(Ubuntu)Mail server using Linux(Ubuntu)
Mail server using Linux(Ubuntu)Navjot Navi
 
E mail protocol - SMTP
E mail protocol - SMTPE mail protocol - SMTP
E mail protocol - SMTPMd Syed Ahamad
 
Information on protocols-email protocols
Information on protocols-email protocolsInformation on protocols-email protocols
Information on protocols-email protocolsPriyanka Shinde
 
How to simplify Email oriented workflow with - Visendo SMTP Extender
How to simplify Email oriented workflow with - Visendo SMTP Extender How to simplify Email oriented workflow with - Visendo SMTP Extender
How to simplify Email oriented workflow with - Visendo SMTP Extender Johannes Cosmin dumitru
 
Pop (post office protocol)e mail (electronic mail)
Pop (post office protocol)e mail (electronic mail)Pop (post office protocol)e mail (electronic mail)
Pop (post office protocol)e mail (electronic mail)MDSHABBIR12
 
Webmail and Mail Clients
Webmail and Mail ClientsWebmail and Mail Clients
Webmail and Mail ClientsSomeone Else
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer ProtocolVinod Gurram
 
Email - Electronic Mail
Email - Electronic MailEmail - Electronic Mail
Email - Electronic MailPeter R. Egli
 
BP108 Admin for the Developer -- Build and Secure Your Own IBM Lotus Domino S...
BP108 Admin for the Developer -- Build and Secure Your Own IBM Lotus Domino S...BP108 Admin for the Developer -- Build and Secure Your Own IBM Lotus Domino S...
BP108 Admin for the Developer -- Build and Secure Your Own IBM Lotus Domino S...NerdGirlJess
 
Unit 3 - Protocols and Client-Server Applications - IT
Unit 3 - Protocols and Client-Server Applications - ITUnit 3 - Protocols and Client-Server Applications - IT
Unit 3 - Protocols and Client-Server Applications - ITDeepraj Bhujel
 
Async event based web server
Async event based web serverAsync event based web server
Async event based web serverGi Woong Lee
 

What's hot (20)

retrieving the mail
retrieving the mailretrieving the mail
retrieving the mail
 
connectivity utility
connectivity utilityconnectivity utility
connectivity utility
 
Spam Filter
Spam FilterSpam Filter
Spam Filter
 
10135 a 05
10135 a 0510135 a 05
10135 a 05
 
Email server system1.ppt
Email server system1.pptEmail server system1.ppt
Email server system1.ppt
 
Mail server using Linux(Ubuntu)
Mail server using Linux(Ubuntu)Mail server using Linux(Ubuntu)
Mail server using Linux(Ubuntu)
 
E mail flow
E mail flowE mail flow
E mail flow
 
E mail protocol - SMTP
E mail protocol - SMTPE mail protocol - SMTP
E mail protocol - SMTP
 
Information on protocols-email protocols
Information on protocols-email protocolsInformation on protocols-email protocols
Information on protocols-email protocols
 
How to simplify Email oriented workflow with - Visendo SMTP Extender
How to simplify Email oriented workflow with - Visendo SMTP Extender How to simplify Email oriented workflow with - Visendo SMTP Extender
How to simplify Email oriented workflow with - Visendo SMTP Extender
 
Pop (post office protocol)e mail (electronic mail)
Pop (post office protocol)e mail (electronic mail)Pop (post office protocol)e mail (electronic mail)
Pop (post office protocol)e mail (electronic mail)
 
Webmail and Mail Clients
Webmail and Mail ClientsWebmail and Mail Clients
Webmail and Mail Clients
 
Smtp
SmtpSmtp
Smtp
 
Electronic mail
Electronic mailElectronic mail
Electronic mail
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
 
Email - Electronic Mail
Email - Electronic MailEmail - Electronic Mail
Email - Electronic Mail
 
BP108 Admin for the Developer -- Build and Secure Your Own IBM Lotus Domino S...
BP108 Admin for the Developer -- Build and Secure Your Own IBM Lotus Domino S...BP108 Admin for the Developer -- Build and Secure Your Own IBM Lotus Domino S...
BP108 Admin for the Developer -- Build and Secure Your Own IBM Lotus Domino S...
 
Unit 3 - Protocols and Client-Server Applications - IT
Unit 3 - Protocols and Client-Server Applications - ITUnit 3 - Protocols and Client-Server Applications - IT
Unit 3 - Protocols and Client-Server Applications - IT
 
Async event based web server
Async event based web serverAsync event based web server
Async event based web server
 
Mail services
Mail servicesMail services
Mail services
 

Viewers also liked

Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer ProtocolRajan Pandey
 
Nagios Conference 2013 - William Leibzon - SNMP Protocol and Nagios Plugins
Nagios Conference 2013 - William Leibzon - SNMP Protocol and Nagios PluginsNagios Conference 2013 - William Leibzon - SNMP Protocol and Nagios Plugins
Nagios Conference 2013 - William Leibzon - SNMP Protocol and Nagios PluginsNagios
 
TFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer ProtocolTFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer ProtocolPeter R. Egli
 
Simple Network Management Protocol
Simple Network Management ProtocolSimple Network Management Protocol
Simple Network Management ProtocolPrasenjit Gayen
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)Ramola Dhande
 
TCP- Transmission Control Protocol
TCP-  Transmission Control Protocol TCP-  Transmission Control Protocol
TCP- Transmission Control Protocol Akhil .B
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer ProtocolUjjayanta Bhaumik
 
UDP - User Datagram Protocol
UDP - User Datagram ProtocolUDP - User Datagram Protocol
UDP - User Datagram ProtocolPeter R. Egli
 
CCNA 1 Routing and Switching v5.0 Chapter 10
CCNA 1 Routing and Switching v5.0 Chapter 10CCNA 1 Routing and Switching v5.0 Chapter 10
CCNA 1 Routing and Switching v5.0 Chapter 10Nil Menon
 
File Transfer Protocol
File Transfer ProtocolFile Transfer Protocol
File Transfer Protocolguest029bcd
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference ModelMukesh Tekwani
 

Viewers also liked (20)

Ch 26
Ch 26Ch 26
Ch 26
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
 
What is tcp
What is tcpWhat is tcp
What is tcp
 
Ch21
Ch21Ch21
Ch21
 
Smtp
SmtpSmtp
Smtp
 
SMTP MULE
SMTP  MULESMTP  MULE
SMTP MULE
 
Smtp protocol
Smtp protocolSmtp protocol
Smtp protocol
 
Nagios Conference 2013 - William Leibzon - SNMP Protocol and Nagios Plugins
Nagios Conference 2013 - William Leibzon - SNMP Protocol and Nagios PluginsNagios Conference 2013 - William Leibzon - SNMP Protocol and Nagios Plugins
Nagios Conference 2013 - William Leibzon - SNMP Protocol and Nagios Plugins
 
Chap 20 smtp, pop, imap
Chap 20 smtp, pop, imapChap 20 smtp, pop, imap
Chap 20 smtp, pop, imap
 
TFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer ProtocolTFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer Protocol
 
Simple Network Management Protocol
Simple Network Management ProtocolSimple Network Management Protocol
Simple Network Management Protocol
 
HTTP
HTTPHTTP
HTTP
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)
 
TCP- Transmission Control Protocol
TCP-  Transmission Control Protocol TCP-  Transmission Control Protocol
TCP- Transmission Control Protocol
 
Http Vs Https .
Http Vs Https . Http Vs Https .
Http Vs Https .
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
 
UDP - User Datagram Protocol
UDP - User Datagram ProtocolUDP - User Datagram Protocol
UDP - User Datagram Protocol
 
CCNA 1 Routing and Switching v5.0 Chapter 10
CCNA 1 Routing and Switching v5.0 Chapter 10CCNA 1 Routing and Switching v5.0 Chapter 10
CCNA 1 Routing and Switching v5.0 Chapter 10
 
File Transfer Protocol
File Transfer ProtocolFile Transfer Protocol
File Transfer Protocol
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference Model
 

Similar to CFIMAP & CFPOP

Similar to CFIMAP & CFPOP (20)

Mail server
Mail serverMail server
Mail server
 
SMTP - SIMPLE MAIL TRANSFER PROTOCOL
SMTP - SIMPLE MAIL TRANSFER PROTOCOLSMTP - SIMPLE MAIL TRANSFER PROTOCOL
SMTP - SIMPLE MAIL TRANSFER PROTOCOL
 
VARRICH.docx
VARRICH.docxVARRICH.docx
VARRICH.docx
 
E mail protocols
E mail protocolsE mail protocols
E mail protocols
 
how email works
how email workshow email works
how email works
 
pop3-imap.ppt
pop3-imap.pptpop3-imap.ppt
pop3-imap.ppt
 
pop3-imap.ppt
pop3-imap.pptpop3-imap.ppt
pop3-imap.ppt
 
window server 2008 mail configuration
window server 2008 mail configurationwindow server 2008 mail configuration
window server 2008 mail configuration
 
E-Mail - Technical Overview
E-Mail - Technical OverviewE-Mail - Technical Overview
E-Mail - Technical Overview
 
12 - E-Mail.ppt
12 - E-Mail.ppt12 - E-Mail.ppt
12 - E-Mail.ppt
 
12 - E-Mail.ppt
12 - E-Mail.ppt12 - E-Mail.ppt
12 - E-Mail.ppt
 
Email
EmailEmail
Email
 
Imap server
Imap server Imap server
Imap server
 
Email Automation.pptx
Email Automation.pptxEmail Automation.pptx
Email Automation.pptx
 
Electronic Mail.ppt
Electronic Mail.pptElectronic Mail.ppt
Electronic Mail.ppt
 
eSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolseSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration tools
 
Mail server
Mail serverMail server
Mail server
 
Mail server
Mail serverMail server
Mail server
 
SMTP(true)
SMTP(true)SMTP(true)
SMTP(true)
 
Protocols and its standards
Protocols and its standardsProtocols and its standards
Protocols and its standards
 

CFIMAP & CFPOP

  • 1. POP and IMAP mail protocol and implementation with ColdFusion  POP – Post Office Protocol.  IMAP – Internet Message Access Protocol  POP implementation with Coldfusion.  IMAP implementation with Coldfusion.
  • 2. POP – Post Office Protocol  The Post Office Protocol (POP) is an application-layer Internet standard protocol used by local e-mail clients to retrieve e-mail from a remote server over a TCP/IP connection.  POP allows the user to download messages one at a time and only deletes them from the server after they have been successfully saved on local storage.  It is possible to leave messages on the server to permit another user to access them.  There is no provision for flagging a specific message as seen, answered, or forwarded.  Thus POP is not convenient for users who access the same mail from different machines or users.  The POP protocol has been developed through several versions, with version 3 (POP3) being the current standard.
  • 3. Advantages & Disadvantages of POP  Advantages ◦ Once all emails downloaded, you can view your email anytime you want on your personal computer, even if you are NOT connected to the Internet. ◦ Emails are stored on your hard drive so they're not subject to server storage limits. ◦ POP is widely supported by Internet Service Providers(ISPs) and email providers.  Disadvantages ◦ Emails are stored on your hard drive so they're not accessible from other computers. ◦ Once email is downloaded, it will not be available at other computers unless you configure your email client to leave mail on the server. If email is left on the server, it is more difficult to tell which emails you have read/not read when accessing from another computer. You also will not be able to organize your email on the server. ◦ Since email is stored directly on your hard drive, if you have a hard drive failure your messages will be lost. ◦ It is also more difficult to change email clients. (such as Eudora or Outlook) since you will need to import/export mail into the new email client.
  • 4. Internet Message Access Protocol  IMAP (Internet Message Access Protocol) is a standard protocol for accessing e-mail from a remote server.  In IMAP, You can also create and manipulate multiple folders or mailboxes on the server, delete messages, or search for certain parts. or an entire note.  IMAP is designed for the situation where you need to work with your email from multiple computers, such as your workstation at work, your desktop computer at home, or a laptop computer while traveling.  There is provision for flagging a specific message as seen, answered, or forwarded.  The current version, IMAP version 4 revision 1 (IMAP4rev1).
  • 5. Advantages & Disadvantages of IMAP  Advantages ◦ Messages are stored on the server are accessible from any computer and webmail anywhere in the world. ◦ All email is stored and accessed directly from the server. If you happen to have a hard drive crash or change email clients, your email will still be accessible when using another computer. ◦ Since email stored on server it is easy to change email clients. ◦ Sent emails and drafts are also stored on the server.  Disadvantages ◦ IMAP requires continual access to the server during the time that you are working with your mail. ◦ Very few ISPs and email providers offer IMAP as it is considered a high end option and it's complex for them to support.
  • 7. CFPOP <cfpop server = "server name" action = "getHeaderOnly|getAll|delete" attachmentPath = "path" debug = "yes|no" generateUniqueFilenames = "yes|no" maxRows = "number" messageNumber = "number" name = "query name" password = "password" port = "port number" startRow = "number" timeout = "seconds" uid = "number" username = "user name">
  • 8. CFPOP Column name getHeaderOnly returns getAll returns Date yes yes From yes yes Messagenumber yes yes Messageid yes yes Replyto yes yes Subject yes yes Cc yes yes To yes yes Body no yes textBody no yes HTMLBody no yes Header yes yes Attachments no yes Attachmentfiles no yes UID yes yes Cids no yes
  • 9. CFIMAP <cfimap action = “delete | deletefolder | createfolder | open | close | renamefolder | listallfolders | markread | movemail | getall | getheaderonly" attachmentpath = "string" connection = "string" folder = "string" generateuniquefilenames = "yes|no" maxrows = "integer" messagenumber ="integer" name = "string" newfolder = "string" password = "string" port = "integer" recurse = "true|false" secure = "yes|no" server = "IMAP server address" startrow = "integer" stoponerror = "true|false" uid = "integer or comma-delimited list of integers" username = “username">
  • 11. POP & IMAP with JAVA Mail API