Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"os"
"path/filepath"
"github.com/go-fsnotify/fsnotify"
)
import smtplib
from email.mime.text import MIMEText
import traceback
class MailSender():
"""
Send mails by smtplib with easy interfaces.
"""
def __init__(self, host="smtp.live.com", port="25", auto_cc=False):