$ -weight: 500;">curl -fsSL https://cli.nylas.com/-weight: 500;">install.sh | bash
~/.config/nylas/bin/nylas auth config --api-key YOUR_KEY
~/.config/nylas/bin/nylas email send --to [email protected] --subject hi --body "From $(hostname)"
-weight: 500;">curl -fsSL https://cli.nylas.com/-weight: 500;">install.sh | bash
~/.config/nylas/bin/nylas auth config --api-key YOUR_KEY
~/.config/nylas/bin/nylas email send --to [email protected] --subject hi --body "From $(hostname)"
-weight: 500;">curl -fsSL https://cli.nylas.com/-weight: 500;">install.sh | bash
~/.config/nylas/bin/nylas auth config --api-key YOUR_KEY
~/.config/nylas/bin/nylas email send --to [email protected] --subject hi --body "From $(hostname)"
/var/log/mail.log
/etc/postfix
#!/usr/bin/env bash
if /usr/local/bin/run-backup.sh; then exit 0
fi nylas email send --to [email protected] \ --subject "[FAIL] backup on $(hostname)" \ --body "$(date): backup failed. See /var/log/backup.log"
#!/usr/bin/env bash
if /usr/local/bin/run-backup.sh; then exit 0
fi nylas email send --to [email protected] \ --subject "[FAIL] backup on $(hostname)" \ --body "$(date): backup failed. See /var/log/backup.log"
#!/usr/bin/env bash
if /usr/local/bin/run-backup.sh; then exit 0
fi nylas email send --to [email protected] \ --subject "[FAIL] backup on $(hostname)" \ --body "$(date): backup failed. See /var/log/backup.log"
# /etc/systemd/system/notify-failure@.-weight: 500;">service
[Unit]
Description=Notify on -weight: 500;">service failure for %i [Service]
Type=oneshot
ExecStart=/usr/local/bin/nylas email send --to [email protected] \ --subject "[%H] %i failed" \ --body "Check journalctl -u %i for details"
# /etc/systemd/system/notify-failure@.-weight: 500;">service
[Unit]
Description=Notify on -weight: 500;">service failure for %i [Service]
Type=oneshot
ExecStart=/usr/local/bin/nylas email send --to [email protected] \ --subject "[%H] %i failed" \ --body "Check journalctl -u %i for details"
# /etc/systemd/system/notify-failure@.-weight: 500;">service
[Unit]
Description=Notify on -weight: 500;">service failure for %i [Service]
Type=oneshot
ExecStart=/usr/local/bin/nylas email send --to [email protected] \ --subject "[%H] %i failed" \ --body "Check journalctl -u %i for details"
# In any -weight: 500;">service that should notify on failure:
[Unit]
OnFailure=notify-failure@%n.-weight: 500;">service
# In any -weight: 500;">service that should notify on failure:
[Unit]
OnFailure=notify-failure@%n.-weight: 500;">service
# In any -weight: 500;">service that should notify on failure:
[Unit]
OnFailure=notify-failure@%n.-weight: 500;">service
nylas email send --to [email protected] \ --subject "✅ Deploy v${VERSION} to prod" \ --body "https://app.example.com/deploys/${DEPLOY_ID}"
nylas email send --to [email protected] \ --subject "✅ Deploy v${VERSION} to prod" \ --body "https://app.example.com/deploys/${DEPLOY_ID}"
nylas email send --to [email protected] \ --subject "✅ Deploy v${VERSION} to prod" \ --body "https://app.example.com/deploys/${DEPLOY_ID}"
trap 'nylas email send --to [email protected] --subject "rebuild done on $(hostname)" --body "exit code $?"' EXIT ./long-running-rebuild.sh
trap 'nylas email send --to [email protected] --subject "rebuild done on $(hostname)" --body "exit code $?"' EXIT ./long-running-rebuild.sh
trap 'nylas email send --to [email protected] --subject "rebuild done on $(hostname)" --body "exit code $?"' EXIT ./long-running-rebuild.sh
# 1. Install
-weight: 500;">curl -fsSL https://cli.nylas.com/-weight: 500;">install.sh | bash # 2. Add to PATH for the session
export PATH="$HOME/.config/nylas/bin:$PATH" # 3. Auth
nylas auth config --api-key YOUR_KEY # 4. Test
nylas email send --to [email protected] --subject hi --body "from $(hostname)" # 5. Verify it landed (should be in your inbox in <30 sec)
# 1. Install
-weight: 500;">curl -fsSL https://cli.nylas.com/-weight: 500;">install.sh | bash # 2. Add to PATH for the session
export PATH="$HOME/.config/nylas/bin:$PATH" # 3. Auth
nylas auth config --api-key YOUR_KEY # 4. Test
nylas email send --to [email protected] --subject hi --body "from $(hostname)" # 5. Verify it landed (should be in your inbox in <30 sec)
# 1. Install
-weight: 500;">curl -fsSL https://cli.nylas.com/-weight: 500;">install.sh | bash # 2. Add to PATH for the session
export PATH="$HOME/.config/nylas/bin:$PATH" # 3. Auth
nylas auth config --api-key YOUR_KEY # 4. Test
nylas email send --to [email protected] --subject hi --body "from $(hostname)" # 5. Verify it landed (should be in your inbox in <30 sec)
/usr/local/bin
nylas email send - Opening port 25 outbound (most cloud providers block this)
- Setting up STARTTLS to a relay
- Maintaining sender DKIM/SPF/DMARC keys (the API handles signing)
- Writing config files in /etc/postfix - mailx needs an MTA underneath (Postfix, Exim). Nothing changes about the SMTP setup.
- msmtp is itself an SMTP client, so you still maintain relay credentials and TLS.
- sendmail is the historical command, usually backed by Postfix. - Send email from the terminal — full nylas email send reference
- Best CLI email tools compared — head-to-head with mutt, mailx, msmtp
- PowerShell email reports — same idea on Windows
- Full command reference