IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

How to retrieve the content of an email by polling?

  • 1.  How to retrieve the content of an email by polling?

    Posted Wed December 03, 2003 12:07 AM

    Hi,

    I am able to poll my email client and invoke the corresponding service. But in that service, I don’t know how to retrieve the content, subject of email. Please let me know if any of you have gone through this in your implementation.

    Thanks in advance.

    Regards,
    Prasanna.


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 2.  RE: How to retrieve the content of an email by polling?

    Posted Wed January 14, 2004 12:43 AM

    In the Service the body comes as an IData so get the cursor and read the payload.
    If you want to check what is the content in the pipeline, call pub.flow.tracePipeline in your service.


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 3.  RE: How to retrieve the content of an email by polling?

    Posted Thu January 15, 2004 12:42 AM

    email receive: (See ISAdministratorGuide.pdf)

    * Go to Administrator webPage > Security > Ports > Add Port
    * select webMethods/Email
    * select default package to receive emails (or leave default WmRoot)
    * enter email account info in Server Information section
    * enter name of Default service eg: MyFolder:MyService
    * email arrives in pipeline as object called "contentStream" so define an input object type for the service called "contentStream"
    * use createMimeData to convert to IData object
    
    pub.mime.createMimeData (map contentStream to input)
    pub.mime.getBodyPartContent (part 0 = header, 1 = attachment)
    streamToBytes
    bytesToString
    savePipelineToFile
    etc...
    

    Cheers,
    Allen.


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 4.  RE: How to retrieve the content of an email by polling?

    Posted Mon January 17, 2005 04:19 AM

    Hi Allen,

    I’ve tried the answer you’ve provided but the webMethods failed to get the email content.

    Here is my pipeline result on the first step.
    My email body only content “BODYtest 1 2 3”, however, the value has imported as an variable name instead of value.

    <?xml version="1.0" encoding="UTF-8"?> /MRPFM/Pipeline.xml

    Is that something wrong in my setting…


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 5.  RE: How to retrieve the content of an email by polling?

    Posted Fri September 23, 2005 10:41 AM

    I’m having exactly the same issue; the pipeline does not appear to have any data from the email (Subject, from, to, etc) except for the text in the body, which is presented as a variable name. This is right up at the top of the flow, so it’s before the call to createMimeData.

    Any ideas?

    Thanks

    Simon


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: How to retrieve the content of an email by polling?

    Posted Thu October 27, 2005 11:06 AM

    I have done this successfully. I can’t send you the flow itself, but I am happy to share the HTML of the flows for your review.

    Send me an email and I’ll return a zip with the web pages you can view locally.

    I use PSUtilities to store a config parameter with the names of the reports that I expect and categorize the mail by the subject line. Depending on the report, I extract either the body or an attachment.

    Howard
    HNeuwirth-Hirsch@noblecorp.com


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 7.  RE: How to retrieve the content of an email by polling?

    Posted Thu October 27, 2005 11:40 PM

    Hi,

    Thanks for the response.

    Please send me the HTML of the flow to this email id

    prasannasa@hcltech.com

    Regards,
    Prasanna.


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 8.  RE: How to retrieve the content of an email by polling?

    Posted Fri May 16, 2008 05:32 PM

    Hi Howard

    I am facing the same issue and could not read the email body message. Could you please sharing how did you do that?

    Please send the service if possible at
    My email is: aamjad@lendersfc.com

    Thanks
    Ammad


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 9.  RE: How to retrieve the content of an email by polling?

    Posted Tue March 24, 2009 08:40 AM

    Hi Howard,

    Can you send the service that you used for this purpose to sudhakar.kagupati@hotmail.com

    Regards,
    Sudhakar


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 10.  RE: How to retrieve the content of an email by polling?

    Posted Fri April 08, 2011 12:28 PM

    Hi hneuwirth-hirsch.13148,

    I’m having a similar issue with the same. Could you pls shed some light & share a detailed view of how to resove the issue at shalinsingh7@gmail.com

    Many Thanks


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 11.  RE: How to retrieve the content of an email by polling?

    Posted Thu May 12, 2011 03:16 AM

    Hi Howard,
    can you send me your code as well? I am having problem of reading the content of received email.
    Thanks
    @
    zhang.alexi@gmail.com


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 12.  RE: How to retrieve the content of an email by polling?

    Posted Tue February 26, 2013 05:37 AM

    Hi Guys,

    I am also stuck in extracting email body content.

    Could anyone of you send the package zip at amit6098@gmail.com;

    Thanks,
    amit


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 13.  RE: How to retrieve the content of an email by polling?

    Posted Fri May 10, 2013 03:24 AM

    Dude, Look at the code I developed for TMS back in 2010…


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 14.  RE: How to retrieve the content of an email by polling?

    Posted Sat June 15, 2013 02:08 PM

    Hi Howard,
    can you send me your code as well? I am having problem of reading the content of received email/emails to samermg@hotmail.com

    Thanks


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 15.  RE: How to retrieve the content of an email by polling?

    Posted Thu August 08, 2013 08:25 AM

    Hi Howard,

    I’m having a similar issue with the same. Could you please shed some light & share a detailed view of how to resolve the issue at sandeep.lati@gmail.com

    Many Thanks


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 16.  RE: How to retrieve the content of an email by polling?

    Posted Tue October 08, 2013 05:18 PM

    Hi Howard,
    can you send me your code as well? I am having problem of reading the content of received email/emails shaffimca39@gmail.com


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General