Skip to content

Instantly share code, notes, and snippets.

@hackerkid
hackerkid / send-message.py
Last active September 18, 2022 17:36 — forked from sosukeinu/send-message.py
Python script to send EML file using gmail SMTP server
#!/usr/bin/env python
# -*- mode: python; coding: utf-8-unix -*-
import sys
import os.path
import smtplib
if len(sys.argv) <= 2:
print('Usage:')
print(' $ python ' + sys.argv[0] + ' mailfrom rcptto <emlfile>')
print