In this screenshot you can see sales order mail sending to multiple acounts . and It work good mail sending to all accounts which mention in
Send Order Email Copy To
This is hard code to give account.
I am developing multi-vendor site. i want to give just those vendor's accounts for email which has items in this order.
Can anyone tell me how can give programmatically emails account instead of giving hardcode in frontend as shown in screenshot.