$phpgw->msg->send($service, $to, $subject, $body, $msgtype, $cc, $bcc) Send a message via email or NNTP and returns any error codes.
Example:
$to = "someuser@domain.com"; $subject = "Hello buddy"; $body = "Give me a call\n Been wondering what your up to."; $errors = $phpgw->msg->send("email", $to, $subject, $body); |