Acces Gmail with coldfusion cfpop

Posted on 2008-10-14
Last Modified: 2013-12-20
Can some one help me out with accessing gmail with cfpop in coldfusion, the main problem is cfpop dont support ssl but i know it can be done,

this code should work
<title>POP Mail Message Attachment Example</title>
<h2>This example retrieves message header,
body, and all attachments:</h2>
<cfset javaSystem = createObject("java", "java.lang.System") />
<cfset jProps = javaSystem.getProperties() />
<cfset jProps.setProperty("mail.pop3.socketFactory.class", "") />
<cfset jProps.setproperty("mail.pop3.port",995) />
<cfset jProps.setProperty("mail.pop3.socketFactory.port", 995) />
<cfpop server=""
  name="Sample" >
<cfoutput query="Sample">
  MessageNumber: #HTMLEditFormat(Sample.MessageNumber)# <br>
  To: #HTMLEditFormat( <br>
  From: #HTMLEditFormat(Sample.from)# <br>
  Subject: #HTMLEditFormat(Sample.subject)# <br>
  Date: #HTMLEditFormat( <br>
  Cc: #HTMLEditFormat( <br>
  ReplyTo: #HTMLEditFormat(Sample.ReplyTo)# <br>
  Attachments: #HTMLEditFormat(Sample.Attachments)# <br>
  Attachment Files: #HTMLEditFormat(Sample.AttachmentFiles)# <br>
  #Sample.body# <br>

Open in new window

Question by:jdunneuk
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
LVL 19

Accepted Solution

erikTsomik earned 125 total points
ID: 22711646
take a look at this
So basically what you need to do is go into the JVM properties and set it to use SSL over the specified port.

also for ssl we have custom tag
LVL 19

Expert Comment

ID: 22711952
thank you

Author Comment

ID: 22711966
how do you set the ssl property? can you show me an example please :)
LVL 19

Expert Comment

ID: 22711989

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Passing value to a stored procedure 8 110
Apache error.log 19 72
Coldfusion cfscript DELETE function 7 36
Dreamweaver code color same as CS6 or CS2015 2 31
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question