Using smtp instead of sendmail
Added the views required for the mail
Now using PHPs mail driver