+ Start a Discussion
PalakPalak 

Not able to set whatids when templates being sent to USERids through apex.

Hi all, 

 

I am trying to send email through apex class. But I am running into some issues while doing so. 

1). Firstly, I am passing userids in targetobjectid. Fields are getting merged in case of visualforce templates else it is throwing invalid ids exception.

2). Also I am using setbccaddress method. But the mail that is received by bcc address , does not have proper merge fields.

 

Please help me its quite urgent .

 

With Regards

Palak Agarwal