+ Start a Discussion
Team WorksTeam Works 

sending emails

Hello Developer friends,

Again i have comeup with some issues which i need help with....my learning curve

I need to create a generic class, method where i can pass the templateid, email address and the object or whatid ....i can call that method to send the emails to customers when the order(Custom Obj) has reached a certain stage in the order provisioning. The order stage is updated from external provisioning sytem via integration.

Please help with the logic

Yours 
Newbie


Andy BoettcherAndy Boettcher
Could you just use Workflow to detect the change and send the email?  (non-programmatic solution!)
Vidhyasagaran MuralidharanVidhyasagaran Muralidharan
Andy is correct go for workflow for point and click.  if you need it in code.just explore Email class for apex coding