[SOLUTION]
Used PHPmailer
Put the following files in /home/root/
class.smtp.php
class.phpmailer.php
PHPMailerAutoload.php
gmail.phps
Im using gmail to send out the emails. so for this reason I used the gmail.phps found in the PHPMailer → Examples Directory
Now i just need to write the bash script!