VishalMistry
25th September 2015, 09:05
Is it possible to send a mail and cc at the same time ?

I am writing the following code to mail to buyer as well as the requisition requester but the mail is not going at all. if i set only recipient, then mail goes but if i include cc, it does not.

Kind request to guide in this regard.

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

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


Vishal

bhushanchanda
25th September 2015, 13:28
Hi,

It should not be a problem unless you are not passing correct email Id's. What are the return values for cmf.send() and cmf.startservice() ?

Also, you can have multiple mail id's separated by ; in case if its an urgent requirement and you are not able to resolve CC issue.