Update Quote stage when email are send

Update Quote stage when email are send

Hi

Just finished some Custom Functions for updating various records in CRM but stuck on this last one.

We are using the built in button to send a PDF of Quotes based on a template

I can however not find a way to update the Quote Stage automatically to "Send"

Also I can't seem to find this info other than in the Timeline of the deal