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 -v -t -oi -f testla@testla.com <<EOF
From: testla@testla.com
To: testla@testla.com
Subject: Automated Device Verification
test
.
EOF
i=$(($i+1))
clear
i=1
while (($i<10))
do
/usr/sbin/sendmail -v -t -oi -f testla@testla.com <<EOF
From: testla@testla.com
To: testla@testla.com
Subject: Automated Device Verification
test
.
EOF
i=$(($i+1))
done