I was able to implement: OnClick on Custom button to redirect to the Email template page with values filled-in using:
location.replace('/_ui/core/email/author/EmailAuthor?p2_lkid={!Contact.Id}&p3_lkid={!Case.Id}&retURL={!Case.Id}&template_id=00Xn0000000MYQyXXA&p26=noreply@arnoldjr.com');
But is there a way to implment:
OnClick –> Sends an email, gives me an alert message on Screen Email sent successfully and redirects back to the Case record detail page?
Best Answer
Try this code, behind the Custom button, this is perfectly working for me.
Code