|
From: Patrick Y. <kc...@ce...> - 2003-06-05 04:36:17
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <title></title> </head> <body> ebMail is using this function. One requirement is that we should let ebMail configure this address, as ebMail is using that "sender" address for reply purpose. Therefore, ebMail would "receive" from that address for getting replies.<br> <br> Therefore, I think we cannot mandate that properties in msh.properties.xml as the sender address. Instead, I suggest we should keep the current approach to use from party id by default. If the from party id does not look valid as an email address, we will use the default value in that property. Comment?<br> <br> Regards, -Patrick<br> <br> <br> Mayne, Peter wrote:<br> <blockquote type="cite" cite="mid...@s-..."> <meta http-equiv="Content-Type" content="text/html; "> <meta name="Generator" content="MS Exchange Server version 5.5.2654.45"> <title>mailto problems</title> <p><font size="2">I've just tried registering a mailto: receiver to accept incoming messages and run across a couple of problems.</font> </p> <p><font size="2">In Mail.send(), the from address of the mail message is set using</font> </p> <p><font size="2"> mimeMessage.setFrom(new InternetAddress(fromPartyId));</font> </p> <p><font size="2">This assumes that the frompartyId is a valid RFC2822 (or whatever InternetAddress accepts) address. However, this is not necessarily so, which is why we now have UrlFinder, for instance.</font></p> <p><font size="2">Suppose our business partner (PartyId (ABN)123) exchanges messages with us(PartyId (ABN)456) over HTTP. We have a URL mapping so that when we send an ebXML message to (ABN)123, Hermes can map this to a physical address of <a href="http://our.business.partner/msh" target="_blank">http://our.business.partner/msh</a>. (The physical from address is irrelevant, since HTTP has no such concept.)</font></p> <p><font size="2">Now, suppose a message arrives over HTTP from (ABN)123, and we have a mailto receiver registered for Hermes to pass it to. The SMTP From address obviously can't be "(ABN)123", nor obviously can it be "<a href="http://our.business.partner/msh" target="_blank">http://our.business.partner/msh</a>". We could have yet another mapping, but that gets confusing.</font></p> <p><font size="2">Not having searched the specs yet (so I'm open to contradiction), I would say that the only sensible thing to do here is to use a fixed From address for all SMTP messages sent by Hermes, both to other MSHs and receivers. After all, the SMTP From address is irrelevant to the MSH, since it looks in the ebXML message to find out who the sender is.</font></p> <p><font size="2">The above line should therefore be something like</font> </p> <p><font size="2"> mimeMessage.setFrom(new InternetAddress(PROPERTY_SMTP_SENDER));</font> </p> <p><font size="2">where PROPERTY_SMTP_SENDER is obtained from msh.properties.xml.</font> </p> <p><font size="2">Comments?</font> </p> <p><font size="2">The other problem is that the attachment is not attached in the email. Yesterday I blamed ebmail for this, but it appears to be something in Hermes. I'll investigate further.</font></p> <p><font size="2">PJDM</font> <br> <font size="2">-- </font> <br> <font size="2">Peter Mayne</font> <br> <font size="2">Technology Consultant</font> <br> <font size="2">Spherion Technology Solutions</font> <br> <font size="2">Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602</font> <br> <font size="2">T: 61 2 62689727 F: 61 2 62689777</font> </p> <font size="3" color="BLUE"> <pre>The information contained in this email and any attachments to it: (a) may be confidential and if you are not the intended recipient, any interference with, use, disclosure or copying of this material is unauthorised and prohibited; and (b) may contain personal information of the recipient and/or the sender as defined under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to collect, hold and use such information and any personal information contained in a response to this email, for any reasonable purpose in the ordinary course of Spherion's business, including forwarding this email internally or disclosing it to a third party. All personal information collected by Spherion will be handled in accordance with Spherion's Privacy Policy. If you have received this email in error, please notify the sender and delete it. (c) you agree not to employ or arrange employment for any candidate(s) supplied in this email and any attachments without first entering into a contractual agreement with Spherion. You further agree not to divulge any information contained in this document to any person(s) or entities without the express permission of Spherion. </pre> </font> </blockquote> </body> </html> |