function messaging_message_send_out in Messaging 6.3
Same name and namespace in other branches
- 5 messaging.module \messaging_message_send_out()
- 6 messaging.module \messaging_message_send_out()
- 6.2 messaging.module \messaging_message_send_out()
Send for real, finally invoking method's callback function
This sends messages one by one, so the callback function only need to support a single destination Specific parameters for this message group are processed here too
Parameters
$destination: Single destination, may be email, user account, etc...
$message: Message object
$method: Sending method
Return value
boolean Message successfully sent
File
- ./
messaging.module, line 275
Code
function messaging_message_send_out($destination, $message, $method) {
$message = messaging_message_build($message);
$message->type = 'outgoing';
$message->destination = $destination;
$message->method = $method;
$result = $message
->send();
if ($result === FALSE) {
watchdog('messaging', 'Message could not be delivered for method %method, destination %destination', array(
'%method' => $method,
'%destination' => $destination,
), WATCHDOG_ERROR);
}
return $result;
}