Send a Gmail draft
Input
draftId requiredThe draft's current id, as returned by the drafts listing. Gmail replaces a draft's id every time it is saved, so use a freshly listed one.
Output
sent requiredTrue when the message was actually sent. Always true on success — the script fails loudly instead of returning false.
subject requiredSubject of the message that was sent. Empty when the draft had no subject.
threadId requiredConversation id, unchanged by sending, so the sent message can be located afterwards.
account_used requiredThe Gmail account the message was sent from, read from the session rather than assumed.
verified_on_page requiredTrue when the send was confirmed by server-derived evidence: the Undo link's target being rewritten to the server-assigned conversation, or the conversation appearing in a settled Sent list.
recipientsDisplay requiredThe recipients exactly as the compose window lists them — display names with the domain, which is what Gmail renders there. Full email addresses are not available on this surface, so none are invented; this is reported so the delivery is still auditable.
sender optionalThe from address as the compose window shows it, read off the message itself rather than the browser session.
attempts optionalHow many Send clicks it took before Gmail accepted. More than 1 means a click silently failed to reach the server and was retried.
leftDrafts optionalWhether the draft had also disappeared from Drafts by the time this was checked. Informational only: it depends on the list repainting, so false here does not mean the send failed.
foundInSent optionalWhether the conversation was found in Sent afterwards, read only once the previous view's draft rows had cleared — an immediate read matches the draft's own row and proves nothing.
previousDraftId optionalThe draft id that was sent and therefore no longer exists as a draft.
accepted_by_server optionalTrue when Gmail rewrote the Undo link's target from the local draft to a server-assigned conversation id, which is the direct signal that the send was accepted.
