Advertisement
Typhoon

IP-Email Send

Aug 31st, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. IPADDRESS=$(/sbin/ifconfig)
  2. IPv6=$(sudo sleep 5 && sudo /sbin/ifconfig tun)
  3. /usr/bin/sendEmail -f ipinfo@MyHostName.sk -t MyMail@gmail.com \
  4. -u IP Adresa R-Pi@256 -m "${IPADDRESS}" "\n\n" IPv6 Tunel : "\n\n ${IPv6}" \
  5. -s smtp.websupport.sk \
  6. -o tls=no \
  7. -xu ipinfo@MyHostName.sk -xp MyPass
  8.  
  9. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement