Search

PythonReactSEOPDF
OpenClaw

Simple Smtp Mail

Simple SMTP Mail

hitygx0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install hitygx/simple-smtp-mail

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

Simple SMTP Mail

Send emails via SMTP using msmtp command-line tool.

Configuration

Create a configuration file at ~/.msmtp/config with the following format:

account default
host <SMTP_SERVER>
port <PORT>
tls on
tls_starttls off
auth on
user <EMAIL_ADDRESS>
password <PASSWORD>
from <EMAIL_ADDRESS>
Common SMTP Settings

Gmail:

  • SMTP Server: smtp.gmail.com
  • Port: 465 (SSL) or 587 (TLS)
  • Note: Use App Password, not your regular password

QQ Mail:

  • SMTP Server: smtp.qq.com
  • Port: 465

Outlook/Hotmail:

  • SMTP Server: smtp.office365.com
  • Port: 587

163.com:

  • SMTP Server: smtp.163.com
  • Port: 465

Installation

1. Install msmtp

macOS:

brew install msmtp

Linux (Debian/Ubuntu):

sudo apt install msmtp

Linux (Fedora/RHEL):

sudo dnf install msmtp
2. Configure SMTP

Edit ~/.msmtp/config:

nano ~/.msmtp/config
3. Set Permissions
chmod 600 ~/.msmtp/config

Sending Email

Basic Email
echo "Body text" | msmtp recipient@example.com
With Subject
echo -e "Subject: Your Subject\n\nBody text" | msmtp recipient@example.com
With Subject and From Header
echo -e "Subject: Your Subject\nFrom: your@email.com\n\nBody text" | msmtp recipient@example.com
HTML Content
echo -e "Subject: Your Subject\nContent-Type: text/html; charset=UTF-8\n\n<html>...</html>" | msmtp recipient@example.com

Testing

Check if SMTP server is reachable:

msmtp --file=~/.msmtp/config --serverinfo

Troubleshooting

  • "Account not found": Check your config file path with --file flag
  • "Authentication failed": Verify username and password (or App Password)
  • "Connection refused": Check port number and firewall settings
  • "TLS certificate error": Try tls_certcheck off in config (not recommended for production)

Source information

Source
github
Repository
openclaw/skills
Path
skills/hitygx/simple-smtp-mail
Version
—
Commit
14c03aed216b9af7823067be9ad6a71d547cb451
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# Simple SMTP Mail

Send emails via SMTP using `msmtp` command-line tool.

## Configuration

Create a configuration file at `~/.msmtp/config` with the following format:

```
account default
host <SMTP_SERVER>
port <PORT>
tls on
tls_starttls off
auth on
user <EMAIL_ADDRESS>
password <PASSWORD>
from <EMAIL_ADDRESS>
```

### Common SMTP Settings

**Gmail:**
- SMTP Server: `smtp.gmail.com`
- Port: `465` (SSL) or `587` (TLS)
- Note: Use App Password, not your regular password

**QQ Mail:**
- SMTP Server: `smtp.qq.com`
- Port: `465`

**Outlook/Hotmail:**
- SMTP Server: `smtp.office365.com`
- Port: `587`

**163.com:**
- SMTP Server: `smtp.163.com`
- Port: `465`

## Installation

### 1. Install msmtp

**macOS:**
```bash
brew install msmtp
```

**Linux (Debian/Ubuntu):**
```bash
sudo apt install msmtp
```

**Linux (Fedora/RHEL):**
```bash
sudo dnf install msmtp
```

### 2. Configure SMTP

Edit `~/.msmtp/config`:
```bash
nano ~/.msmtp/config
```

### 3. Set Permissions
```bash
chmod 600 ~/.msmtp/config
```

## Sending Email

### Basic Email
```bash
echo "Body text" | msmtp recipient@example.com
```

### With Subject
```bash
echo -e "Subject: Your Subject\n\nBody text" | msmtp recipient@example.com
```

### With Subject and From Header
```bash
echo -e "Subject: Your Subject\nFrom: your@email.com\n\nBody text" | msmtp recipient@example.com
```

### HTML Content
```bash
echo -e "Subject: Your Subject\nContent-Type: text/html; charset=UTF-8\n\n<html>...</html>" | msmtp recipient@example.com
```

## Testing

Check if SMTP server is reachable:
```bash
msmtp --file=~/.msmtp/config --serverinfo
```

## Troubleshooting

- **"Account not found"**: Check your config file path with `--file` flag
- **"Authentication failed"**: Verify username and password (or App Password)
- **"Connection refused"**: Check port number and firewall settings
- **"TLS certificate error"**: Try `tls_certcheck off` in config (not recommended for production)

Related skills

OpenClaw

sixtyfour-skill

rxhxm

Agent Skill (SKILL.md) for Sixtyfour AI — People & company intelligence API. Enrich leads, find emails/phones, qualify prospects, search people. For Claude Code, Codex, OpenClaw, Cursor.

OpenClaw

139mail

chang-tong

139邮箱邮件收发 Skill - 支持 IMAP/SMTP 协议,兼容139/QQ/163/Gmail等主流邮箱 功能: 1. 发送邮件(SMTP) 2. 接收邮件(IMAP) 3. 查看收件箱列表 4. 查看未读邮件 当用户提到 "发邮件"、"收邮件"、"查看邮件"、"邮箱"...

OpenClaw

ABM Outbound

dru-ca

Multi-channel ABM automation that turns LinkedIn URLs into coordinated outbound campaigns. Scrapes profiles, enriches with Apollo (email + phone), gets mailing addresses via Skip Trace, then orchestrates email...