function invite_mail in Invite 7.2
Same name and namespace in other branches
- 6.2 invite.module \invite_mail()
Implements hook_mail().
File
- ./
invite.module, line 1486 - Allows your users to send and track invitations to join your site.
Code
function invite_mail($key, &$message, $params) {
global $user;
$invite = $params['invite'];
if (!empty($params['reply-to'])) {
$message['headers']['Reply-To'] = $params['reply-to'];
}
$message['subject'] = $invite->data['subject'];
$message['body'][] = $invite->data['message'];
}