$sm = new SendMail('Server Name'); $sm->From('aa@bb.com'); $sm->To('xx@yy.com'); $sm->Subject('just kill me'); $str="This is mail body"; $sm->setMailBody($str); $sm->sendMail();