function QuickSend($to,$from,$subject,$body,$format = MESSAGE_FORMAT_TEXT)
    {
        $message = new EmailMessage();
        $message->SetFrom($from);
        $message->AddRecipient($to);
        $message->Subject = $subject;
        $message->Body = $body;
        $message->Format = $format;

        return $this->Send($message);
    }
function QuickSend($to,$from,$subject,$body,$format = MESSAGE_FORMAT_TEXT)
    {
        $message = new EmailMessage();
        $message->SetFrom($from);
        $message->AddRecipient($to);
        $message->Subject = $subject;
        $message->Body = $body;
        $message->Format = $format;

        return $this->Send($message);
    }
function QuickSend ( $ to , $ from , $ subject , $ body , $ format = MESSAGE_FORMAT_TEXT ) { $ message = new EmailMessage ( ) ; $ message -> SetFrom ( $ from ) ; $ message -> AddRecipient ( $ to ) ; $ message -> Subject = $ subject ; $ message -> Body = $ body ; $ message -> Format = $ format ; return $ this -> Send ( $ message ) ; }
Utility method to send a simple text email message
@param string $to
@param string $from
@param string $subject
@param string $body
Utility method to send a simple text email message