ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » SMTP adapter to MQ

Post new topic  Reply to topic
 SMTP adapter to MQ « View previous topic :: View next topic » 
Author Message
George Carey
PostPosted: Tue Aug 26, 2008 1:17 pm    Post subject: SMTP adapter to MQ Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

Looking for a utility, tool or third party product that performs the function or has the capability to interface to an SMTP(email) server and transfer contents of email message attachments to an MQ Q.

I have seen the Websphere Adapter for email but looking for something that doesn't require WPS, WID etc. .

Any such animal out there ? Looking to do Inbound traffic only at this time.

...
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
Michael Dag
PostPosted: Tue Aug 26, 2008 1:51 pm    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

you could try-out this

http://almaer.com/blog/smtp2webcom-bridge-smtp-to-http-let-app-engine-accept-email

and use the HTTP-MQ Bridge to receive the data in a queue
_________________
Michael



MQSystems Facebook page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
George Carey
PostPosted: Tue Aug 26, 2008 2:45 pm    Post subject: google developer's adapter Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

Looks good !

Thanks much ... will investigate further = try it !

Regards,
GTC
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
RogerLacroix
PostPosted: Wed Aug 27, 2008 7:39 pm    Post subject: Re: SMTP adapter to MQ Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

George Carey wrote:
Looking for a utility, tool or third party product that performs the function or has the capability to interface to an SMTP(email) server and transfer contents of email message attachments to an MQ Q.

I've created some simple custom stuff in Java.
i.e. Q -> SMTP (outbound email). Do you have the "To", "From", etc.. fields in the message data? Is the message data in XML format?

George Carey wrote:
Any such animal out there ? Looking to do Inbound traffic only at this time.

That's called POP or POP3 and not SMTP.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Thu Aug 28, 2008 3:22 am    Post subject: Re: SMTP adapter to MQ Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

RogerLacroix wrote:
George Carey wrote:
Any such animal out there ? Looking to do Inbound traffic only at this time.

That's called POP or POP3 and not SMTP.


There is a Pop3Input node for Broker, as a SupportPac.

On the other hand, SMTP does go in both directions. POP3 and IMAP are both intended for communications from Email Clients to Email Servers... SMTP is what Email Servers use to talk to each other. It's entirely possible to configure something to act as an SMTP Server to receive email.

One could even look at the facilities in various email servers (sendmail, qmail, etc.) to pass incoming email directly to programs, via shell invocation and standard i/o, to do the heavyweight stuff.

Or one could look at any of the various open source SMTP Servers and see how hard it was to change them to understand MQ and deliver to MQ "mail boxes".

And the JavaMail API is pretty useful for a lot of things.
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Aug 28, 2008 4:02 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

If you run Lotus Notes, you can simply trigger a Notes agent written in Java or Lotuscript (using MQLSX) upon mail arrival in the Notes DB, the agent can then use MQI calls.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Thu Aug 28, 2008 7:44 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,
Wikipedia wrote:
While electronic mail server software uses SMTP to send and receive mail messages, user-level client mail applications typically only use SMTP for sending messages to a mail server for relaying. For receiving messages, client applications usually use either the Post Office Protocol (POP) or the Internet Message Access Protocol (IMAP) to access their mail box accounts on a mail server.

That quote is from:
http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol

Hence, my comments about client email related application / code: STMP to send and POP3 to receive.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Thu Aug 28, 2008 9:24 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I'd rather make a queue manager a Server than a Client.
Back to top
View user's profile Send private message
George Carey
PostPosted: Thu Aug 28, 2008 12:58 pm    Post subject: DP Unit Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

I have the question out on the DATAPOWER forum but no one has responded so I will ask here.

Does the DP box handled any of these protocols SMTP, POP3, IMAP ???


GTC
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
mqjeff
PostPosted: Thu Aug 28, 2008 1:01 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Not from what I can tell. The only mention of Email is to send log messages out by email.

You could file a feature request...
Back to top
View user's profile Send private message
George Carey
PostPosted: Thu Aug 28, 2008 1:27 pm    Post subject: SMTP Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

A bit more info:

Speaking to a networking brethren, he notes that POP and IMAP would require polling to get email messages,

where as a SMTP daemon could have mail for a user received at a remote SMTP server forwarded without the need to be polled and the local server could have the designated user setup to execute a script that could execute a program/tool/adapter app to parse the email and put on Q or whatever.

I will need to investigate the details but if the case the broad outline looks good.

Would be a nice use for a DP box !!

GTC
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
RogerLacroix
PostPosted: Thu Aug 28, 2008 3:23 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

Here you go - a complete Java program with explanation on how to connect to a POP3 server and retrieve email messages that have attachments:
http://www.zdnetasia.com/techguide/java/0,39044898,39304762,00.htm

I would setup the code as a Java daemon. I would replace the "System.out.println" of the attachment size with a create MQ message and put MQ message calls and voila, you have an "email-to-Q" adapter.

Now if you are a C# guy, then here's an example of C# code that connects to a POP3 server and retrieve email messages that have attachments:
http://www.codeproject.com/KB/IP/despop3client.aspx

Regardless of which programming language you choose, make sure think globally or company-wide for your application design.

(1) The subject line or somewhere in the email body you should have the name of the target MQ queue and possibly the target QMgr name. (or the attachment name could be the target MQ queue name.)

(2) If an email has more than 1 attachment, is that 1 MQ message per attachment or do you put all attachments into the same MQ message?

(3) What happens if you get an email without an attachment?

(4) What happens if you get email spam with an attachment? i.e. The subject line and/or email body should have some structure to it.

Enjoy.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
George Carey
PostPosted: Tue Sep 02, 2008 3:36 pm    Post subject: SMTP adapter to MQ Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

I will give it a look see !

Thanks Roger! Let me know if you come across similarly functional code that might be a supported product without a heavyweight suite of other products needing to be dragged in with it.

GTC
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
RogerLacroix
PostPosted: Tue Sep 02, 2008 5:05 pm    Post subject: Re: SMTP adapter to MQ Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

George Carey wrote:
Let me know if you come across similarly functional code that might be a supported product without a heavyweight suite of other products needing to be dragged in with it.

I have built lots of single purpose adapters over the years and I could build a product out of email-To-Q and Q-To-email but the question is: "if I build it, will they come?". Or more specifying: "if I build it, will anyone buy it".

If you provide some comments to those 4 "food for thought" points, I'll be in a better position to determine if I should build it (or add it as a feature to MQ Batch Toolkit).


Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
George Carey
PostPosted: Mon Sep 08, 2008 2:00 pm    Post subject: smtp to q Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

I believe the WSMB has an input node for email ... thus one example where you could get some potential buyers (anyone not wishing to pay the price of WSMQ for this functionality).

I know a customer that would be interested ...
Wondering if IBM will come out with DP functionality for it ...


A number of institutions used/use email attachments to transfer/share files.
This would allow them to easily move to an updated ESB infrastructure.
Where message traffic can be routed to appropriate services via message queues.


GTC
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » SMTP adapter to MQ
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.