WebSphere Commerce suite - Sending additional emails during Order Process

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Commerce suite > February 2006 > Sending additional emails during Order Process





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Sending additional emails during Order Process

2006-02-17, 10:34 pm

Hi,

I'm using WC Express Developer 5.6.1 on Windows XP.

I want to send out an email to all the distributors of the product that a customer has ordered.

I have extended the ExtOrderProcessCmdImpl class and composed a message using the SendMsgCmd based on the doco at - http://publib.boulder.ibm.com/infoc...fs/rcvcomex.htm

However I'm failing to understand how to set the recipients email address.

I've looked at the WishListMessageConfirmationDisplay.jsp file and discovered that the class that should compose the message is com.ibm.commerce.messaging.commands.InterestItemListMessageCmd, though I can't find this class in the WCToolkitExpress561\src\w
cssrc.zip.

Could you help me find this class or let me know how to set the recipients of the email. The recipients aren't customers, or the merchant. The email address is and attribute of the category.

Cheers,
Peter O'Neill

2006-02-17, 10:34 pm

Peter,

Use the <code>setConfigData(String key, String value)</code> method of SendMsgCmd. The following self-explanatory <code>key</code> values the typically used for the e-mail transport: "recipient", "CC", "BCC", "subject" and "sender".

If you omit any of these, the corresponding value is retrieved from the PROFNVSTRG table (afaicr). The values in this table can be edited from the Administration Console, so any value that is not programatically determined (as the recipient would be in yo
ur case) should be left alone, allowing the store administrator to change the value.

Robert Brown

2006-02-17, 10:34 pm

The instance's xml has default values for Sender, Recipient, Subject,
etc. in the InteractionSpec tag for JCAEmail if the individual message
does not specify the value.

R

> Peter,
>
> Use the <code>setConfigData(String key, String value)</code> method of SendMsgCmd. The following self-explanatory <code>key</code> values the typically used for the e-mail transport: "recipient", "CC", "BCC", "subject" and "sender".
>
> If you omit any of these, the corresponding value is retrieved from the PROFNVSTRG table (afaicr). The values in this table can be edited from the Administration Console, so any value that is not programatically determined (as the recipient would be in

your case) should be left alone, allowing the store administrator to change the value.
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com