Rechercher

PythonReactSEOPDF
OpenClaw

Simple Smtp Mail

Simple SMTP Mail

hitygx0 installations selon la source☆ 0 Étoiles du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

SkillHub CLI

skillhub install hitygx/simple-smtp-mail

Examinez la source et la compatibilité, puis suivez les étapes d’installation.

Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.

Voir la source ↗Guides

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)

Informations sur la source

Source
github
Repository
openclaw/skills
Path
skills/hitygx/simple-smtp-mail
Version
—
Commit
14c03aed216b9af7823067be9ad6a71d547cb451
Source de classification
rules
Statut
active
Visibilité
public

Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.

Contenu extrait

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)

Skills associés

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...