# Email MCP Server Configuration
# ===== OPTION 1: Multiple Accounts (JSON) =====
# Configure multiple email accounts in JSON format
EMAIL_ACCOUNTS_JSON='{
"work": {
"smtp_host": "smtp.mail.me.com",
"smtp_port": 587,
"smtp_secure": false,
"smtp_user": "your-email@icloud.com",
"smtp_pass": "your-app-specific-password",
"imap_host": "imap.mail.me.com",
"imap_port": 993,
"imap_secure": true,
"default_from_name": "Your Name"
},
"personal": {
"smtp_host": "smtp.gmail.com",
"smtp_port": 587,
"smtp_secure": false,
"smtp_user": "your-email@gmail.com",
"smtp_pass": "your-app-specific-password",
"imap_host": "imap.gmail.com",
"imap_port": 993,
"imap_secure": true,
"default_from_name": "Your Name"
}
}'
# Default account to use if not specified in tool calls
DEFAULT_EMAIL_ACCOUNT="work"
# ===== OPTION 2: Single Account (Individual Variables) =====
# Use these if you only have one email account
# SMTP_HOST="smtp.mail.me.com"
# SMTP_PORT=587
# SMTP_SECURE=false
# SMTP_USER="your-email@icloud.com"
# SMTP_PASS="your-app-specific-password"
# IMAP_HOST="imap.mail.me.com"
# IMAP_PORT=993
# IMAP_SECURE=true
# DEFAULT_FROM_NAME="Your Name"
# ===== NOTES =====
# For Gmail: Use App-Specific Passwords (not your regular password)
# For iCloud: Use App-Specific Passwords
# For other providers: Check their SMTP/IMAP settings documentation