Unclassified NewsBoard Code Reference

UnbNotifyUser function

Send a message to one or more users

function UnbNotifyUser ($users, $method, $subject_key, $subject_data, $msg_key, $msg_data, $from = '');

Parameters:

users
(int) user id
(array) all user ids
method
(int) 1: E-Mail, 4: Jabber (no combinations allowed)
see UNB_NOTIFY_* constants in common.lib.php
subject_key
(string) translation's text key of the message subject
subject_data
array(parameter => value) resolution for the subject template
msg_key
(string) translation's text key of the message body
msg_data
array(parameter => value) resolution for the body template
from  –  optional, default: ''
(string) Reply-To address, '': no address set

Return value:

(int) number of successfully sent messages

Remarks:

The message body may contain the following user-dependant variables:
{rcpt-name} -> User's name

Implementation file: unb_lib/mail.lib.php, line 34

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.