First time registering package into composer
add below code in your test file
$to = "[email protected]"; $subject = "This is subject email";
$message = "This is HTML message."; $message .= "
";$header = "From:[email protected] \r\n"; $header .= "Cc:[email protected] \r\n"; $header .= "MIME-Version: 1.0\r\n"; $header .= "Content-type: text/html\r\n";
$SendMailObj = new SendMail();
$SendMailObj->to =$to; $SendMailObj->subject = $subject; $SendMailObj->header = $header; $SendMailObj->message = $message;
echo $SendMailObj->sendemail();