Cmd Send E-mail

Cmd Send E-mail

With this Shell script, we can upload .mobi to Kindle

If without -xp, you need input pass of your E-mail.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
FROM="binder@gmail.com"
TO="xxx@kindle.cn"
ATTACH="./xxx.mobi"

if [ $# -gt 0 ]; then
FROM=$1
fi

if [ $# -gt 1 ]; then
TO=$2
fi

if [ $# -gt 3 ]; then
ATTACH=$3
fi

sendemail -s smtp.nju.edu.cn \
-f mg1433094@smail.nju.edu.cn \
-t $TO \
-u "Idler's Books" \
-m $"Idle About" \
-xu $FROM \
#-xp $PASS \
-o tls=auto \
-a $ATTACH

Contents
  1. 1. Cmd Send E-mail