VishalMistry
18th February 2010, 12:16
Hi all,

I am using cmf functions to send e-mail from ERPLn. I am using e-mail id defined in address table (this address is inturn linked to business partner) which i am setting as mail recipient through cmd.setrecipientaddress function. The issue is if i specify more than one e-mail id in the format "id1@site1.com;id2@site2.com", it sends e-mail to the first email id(id1@site1.com) only and skips rest of the ids.
Can anyone guide me how can i specify more than one e-mail id separated by ";" ?

vishal

NPRao
18th February 2010, 19:47
Vishal,

Refer to the example cmf program - eMessage Connector examples (http://www.baanboard.com/programmers_manual_baanerp_help_emessage_connector_examples)

|fill addresslist with data from Address Book: first select baan users from User Data table (ttaad200), then select for each user their
|address data from the Address Book (ttcmf200). Then add user as entry to the addressslist object

So you have to use the following function calls for every address in the to-list.

|Set TO recipient
to.ID = cmf.createRecipient(message.ID, ttcmf.role.to)
ret = cmf.setRecipientName(to.ID, recipient.name)
ret = cmf.setRecipientAddress(to.ID, recipient.address)
ret = cmf.setRecipientType(to.ID, "SMTP")
ret = cmf.setRecipientResponsibility(to.ID, "TRUE")

VishalMistry
19th February 2010, 05:49
Hi,
These email addresses are for business partners stored in tccom130 (addresses) table, as the email field (tccom130.info) is not enough for holding multiple email id's for business partner, we will also be using the internet field (tccom130.inet). All these email addresses will be separated by ";".
Still, will give it a try.
Thanks,
Vishal

rp.chowdary
8th March 2010, 11:16
Is there any option there for sending external also from baan with out any third party tools