Exemplo n.º 1
0
 /**
  * Utility method to send a simple text email message
  * @param string $to
  * @param string $from
  * @param string $subject
  * @param string $body
  */
 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);
 }