Author |
Message
|
jdevassy |
Posted: Mon Sep 26, 2011 10:30 pm Post subject: SendMailPlugIn dynamically setting the host and port |
|
|
Apprentice
Joined: 16 Oct 2005 Posts: 37 Location: Melbourne, Australia
|
Hi,
I am using the SendMail plugin fomr IA07. Can I dynamically set the host and port from the incoming message to the node rather than setting it on the SMTP property of the node?
Thanks in advance for your help
jdevassy |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Sep 27, 2011 2:53 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Why are you using a SupportPack that has been replaced by a builtin node?
Are you using an old version of Broker? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqsiuser |
Posted: Tue Sep 27, 2011 10:28 am Post subject: Re: SendMailPlugIn dynamically setting the host and port |
|
|
 Yatiri
Joined: 15 Apr 2008 Posts: 637 Location: Germany
|
jdevassy wrote: |
I am using the SendMail plugin fomr IA07. Can I dynamically set the host and port from the incoming message to the node rather than setting it on the SMTP property of the node?
|
Look at the pdf of the support pack. But I guess you cannot. Write the author of the support-pack (I did once and he replied). Does the build in node provide that ? (I guess it does not, because SMTP-Servers are usually only a few and don't change that often)
So you will also likely not have too many SMTP-Servers and they are not changing that often... just lets say you have 5 different SMTP-Servers. Then put in the node 5 times (with the 5 smtp servers configured) and put in a dynamic routing in front (in your case routing will be based on information from the message).
If your SMTP-Servers change more frequently create a separate flow for each smtp-server and route to their input-queues. Add or remove a new SMTP-flow each time a SMTP-Server gets added/removed and also adjust the routing (in that case probably in a db(-table)). Be aware that (MIME-)Attachments do not work (get lost) when you use a separate flow (with that I mean that at least I didn't make it work). |
|
Back to top |
|
 |
jdevassy |
Posted: Mon Oct 03, 2011 1:38 am Post subject: |
|
|
Apprentice
Joined: 16 Oct 2005 Posts: 37 Location: Melbourne, Australia
|
Thanks for the replies...
@smdavies99, Yes, we are on an older version of the Broker (6.0.0.2). This is an interim solution.
@mqsiuser, different nodes for each environment may be the option in this case and read the server info from a config file. I will try this out and let you know.
Thanks again
jdevassy |
|
Back to top |
|
 |
mqsiuser |
Posted: Wed Oct 05, 2011 12:45 am Post subject: |
|
|
 Yatiri
Joined: 15 Apr 2008 Posts: 637 Location: Germany
|
In this post: http://www.mqseries.net/phpBB2/viewtopic.php?p=308586&highlight=#308586 there is an interesting proposal.
Translated to your requirements it suggests to create a User-Defined-Property, e.g. "smtpServerIP" (and "smtpServerPort") to be accessed in your ESQL via the EXTERNAL KeyWord. Then promote your userdefined property along with the "smtpServerIP" property of the eMail-node to a single property on flow level (yes this is possible).
Probably this can help to access the property from within you ESQL-Code. Can you try out this an keep us informed. I am curious. _________________ Just use REFERENCEs |
|
Back to top |
|
 |
|