163邮箱技能 - 通过163 SMTP服务发送邮件,支持自定义收件人、主题和内容。支持命令行和Python导入。
Send emails via 163 SMTP service. Support custom recipient, subject, content. Both CLI and Python module import calling methods are supported.
bash
python send_email.py "recipient@example.com" "Test Subject" "Email content here"
python
from src.send_email import send_mail
send_mail(
to="recipient@example.com",
subject="Test Email",
content="This is the email content"
)
Set environment variables before use:
bash
export CLAW_EMAIL="your_163_email@163.com"
export CLAW_EMAIL_AUTH="your_smtp_authorization_code"
export CLAW_SMTP_SERVER="smtp.163.com" # optional
export CLAW_SMTP_PORT="465" # optional
Or use in Python:
python
import os
os.environ["CLAW_EMAIL"] = "your_email@163.com"
os.environ["CLAW_EMAIL_AUTH"] = "your_auth_code"
MIT