[Ubuntu] Example of sending email with sendmail.

That is just an example, but do not use it to send the spam email la! :P

 

#!/bin/bash
clear

i
=1
while (($i<10))
do
/usr/sbin/sendmail ---oi -f testla@testla.com <<EOF
From: testla
@testla.com
To: testla
@testla.com
Subject: Automated Device Verification
test
.
EOF
i
=$(($i+1))

done 

 

posted @ 2011-03-16 14:53  DavidHHuan  阅读(243)  评论(0编辑  收藏  举报