function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Damien_Damien_ 

Javascript autoemail template custom button

Inside of a custom button, I have the javascript:

 

location.replace('/email/author/emailauthor.jsp?retURL=%2F{!Case.Id}&p24={!Case.SuppliedEmail}&rtype=003&p3_lkid={!Case.Id}&new_template=1&template_id=00XS0000000Qfeb&save=1');

 

When it navigates to the new page, everything fills out correct, but it doesn't send the email and redirect me right away.  Instead I get the error:

 

The page you submitted was invalid for your session. Please click Save again to confirm your change.

 

 

Does anyone know how I might be able to correct this?