rsvp_send_invitation($invite, $from = NULL)
rsvp/rsvp.module, line 1242
$invite The invite object to send the mail with.
| Name | Description |
|---|---|
| functions for rsvp mailing. |
<?php
function rsvp_send_invitation($invite, $from = NULL) {
if (is_null($from)) {
global $user;
$from = $user->name .' <'. $user->mail .'>';
}
$subject = theme('rsvp_invite_mail_subject', $invite);
$to = $invite->email;
$body = theme('rsvp_invite_mail', $invite);
return rsvp_mail('rsvp_invite_email', $to, $subject, $body, $from);
}
?>