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