Skip to contentSkip to conversation

kernel patch submission script using msmtp/gmail

test - ignore [email protected] 1 participant 1 message Jul 5, 2008

lore
Share & tools
lore
#0 lore raw

#!/bin/sh

# Submits a single kernel patch using GMail SMTP
# During tests, this script emails itself (nothing secret in here)

smtpemailfrom="[email protected]"
smtpdomain=sidebranch.com
smtpserver=smtp.gmail.com
[email protected]

recipients="[email protected]"

patchemail=/tmp/patch.eml

echo -n "Subject: " > $patchemail
echo "[test - ignore] kernel patch submission script using msmtp/gmail" >> $patchemail echo "" >> $patchemail

cat $0 >> $patchemail

msmtp --host=$smtpserver --auth=on --tls=on --port=587 \
--tls-certcheck=off -f $smtpemailfrom --user $smtplogin \
--maildomain $smtpdomain \
$recipients < $patchemail