osascript-email
by @yumik20
Send automated plain-text emails on macOS via Mail.app using AppleScript without SMTP credentials, suitable for alerts and reports, not bulk or HTML emails.
| Symptom | Likely cause | Fix |
|---------|-------------|-----|
| osascript: Mail got an error | Mail.app not open or account not configured | Open Mail.app, check accounts |
| Email lands in Drafts | send m not reached (script errored before) | Check escape characters |
| execution error: Mail got an error: Invalid recipient | Address typo | Verify recipient address |
| Email sends but empty body | Newline escape issue in content string | Use Python helper instead |
| returncode != 0 with no stderr | osascript permission denied | Grant Automation permission: macOS Ventura+: System Settings β Privacy & Security β Automation; older macOS: System Preferences β Security & Privacy β Automation |
clawhub install osascript-email