User Guide
08.3 · Saving, Copying and Sharing

Email

Send the current capture to someone via your default Windows mail client. Two modes are supported — attachment and inline paste.

Both commands require HasCapture == true. Both are backed by IEmailService, which uses the Windows mailto: shell handler — the same one a browser invokes when you click an email link.

Send as Attachment

  1. Click the Email button → Send as Attachment.
  2. Tex renders the capture (plus annotations) to PNG in a temp folder.
  3. Your default mail client opens a new message with the PNG attached.
  4. Add a recipient, subject, and body, then send.

Behind the scenes this calls EmailAsAttachmentCommand, which invokes the mail client with the temp file attached via shell arguments.

Send Inline (Paste into Body)

  1. Click the Email button → Send Inline.
  2. Tex copies the image to the clipboard and opens a new mail message.
  3. Click into the message body and paste (Ctrl+V).
  4. Add the recipient and send.

This uses EmailInlineCommand — effectively a combined Copy plus Open Mail Client. The mail client does not receive the image directly; you have to paste.

Tip

Warning — inline paste only renders as an image in rich-HTML-capable clients (Outlook desktop, Outlook web, Gmail web, Apple Mail). Plain-text clients will silently drop the pasted image. If the recipient sees an empty body, switch to Send as Attachment instead.

Which to Use

Use caseCommand
Recipient needs the file to archive or forward.Send as Attachment.
You want the image visible when the recipient opens the email, without needing to open an attachment.Send Inline.
Your mail client is unknown or minimal.Send as Attachment.
You need to embed the image alongside other pasted content.Send Inline.

Default Mail Client

Tex does not configure a mail client itself — it hands off to whatever Windows has registered under Settings → Apps → Default apps → Mail. If no default is set, the command fails silently. Set one up once, and both email commands work for every capture thereafter.

  • Save the image and attach it manually: see 08.1.
  • Copy the image and paste it anywhere: see 08.2.