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
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