Skip to content

harryzhu/tellme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tellme

send mail in one-line script

build

./build.sh or ./build-win.bat (on windows)

seal

generate your accesskey

./tellme seal --host="127.0.0.1" --port="25" --auth="" --user="" --password="" --name="smtp-mypc-localhost-25"

use --auth="" --user="" --password="" : sendmail anonymously,

use --auth="plain" --user="your-username" --password="your-password" : sendmail with plainAuth,

use --auth="login" --user="your-mail@hotmail.com" --password="your-password" : sendmail with startTLS, for hotmail.com or outlook.com, etc.

then you will get your --accesskey="...", keep it and it is required by sendmail.

i.e.(for 127.0.0.1:25 smtp server):

--accesskey="Zt5BmhsR9C8C029xblTUkhR0JJazlduCVdKZIIX2aPqN7HQzd9/Bq4HPp6qU0DkBQ7H243gI2akWljyv1Jpsh6sAg/4vTE+IpMbSTV6LkC+IVR2zS1B6z+XOWqkBrSNOj/4hm0DedQPxGcZ434LVbQ=="

if you set one env variable TELLMEACCESSKEY: i.e.

export TELLMEACCESSKEY="Zt5BmhsR9C8C029xblTUkhR0JJazlduCVdKZIIX2aPqN7HQzd9/Bq4HPp6qU0DkBQ7H243gI2akWljyv1Jpsh6sAg/4vTE+IpMbSTV6LkC+IVR2zS1B6z+XOWqkBrSNOj/4hm0DedQPxGcZ434LVbQ=="

it will be loaded automatically. if you set TELLMEACCESSKEY and use --accesskey meanwhile, it will ignore env-var value and use --accesskey

sendmail

read a file(within mail-content) and then send out

 sendmail  --accesskey="Zt5BmhsR9C8C029xblTUkhR0JJazlduCVdKZIIX2aPqN7HQzd9/Bq4HPp6qU0DkBQ7H243gI2akWljyv1Jpsh6sAg/4vTE+IpMbSTV6LkC+IVR2zS1B6z+XOWqkBrSNOj/4hm0DedQPxGcZ434LVbQ==" --from="your-mail@address.com"   --to="receiver@address.com" --subject="test" --file="/home/harryzhu/email.html"

About

customized alert

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages