bug: JMAP SendEmail silently drops attachments
Description
backend/jmap/jmap.go SendEmail manually constructs an RFC5322 message using fmt.Fprintf. It only writes From, To, Cc, Subject, and a plain text body.
Attachments, HTML bodies, and MIME multipart are completely ignored. Sending an email with attachments via JMAP silently drops them.
Expected Behavior
Emails sent via JMAP should include attachments and support multipart MIME, matching the IMAP/SMTP sender behavior.
Suggested Fix
Use go-message to construct the RFC5322 message (consistent with the SMTP sender) or use JMAP's native Email/set with bodyValues and attachments fields instead of raw RFC5322 submission.
This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.
Closing due to inactivity. Reopen if still relevant.