You are here

function messaging_private_send_msg in Messaging 5

Send mail message to user accounts

Parameters

$destination: User account

1 string reference to 'messaging_private_send_msg'
messaging_private_messaging in messaging_private/messaging_private.module
Implementation of hook_messaging

File

messaging_private/messaging_private.module, line 34
Simple mail using Drupal API. Messaging method plug-in

Code

function messaging_private_send_msg($destination, $message) {

  // Hand over to privatemsg
  privatemsg_send_privatemsg($destination, $message['subject'], $message['body']);

  // @ TO DO How to check for success?
  return 1;
}