You are here

function uc_wishlist_send_mail in UC Wish List 7

Wishlist: Sending mail function.

Parameters

mail $to: Reciever email address.

string $subject: Subject of the mail.

string $message: Body of the mail.

Return value

none Returns nothing.

1 call to uc_wishlist_send_mail()
uc_wishlist_email_form_submit in ./uc_wishlist.pages.inc
Submit callback for the wishlist Email form use to send email.

File

./uc_wishlist.pages.inc, line 871
Page callback and functions for wish lists.

Code

function uc_wishlist_send_mail($to, $subject, $message) {
  $from = variable_get('uc_wishlist_default_from', '');
  $params = array(
    'subject' => $subject,
    'body' => $message,
    'from' => $from,
  );
  drupal_mail('uc_wishlist', 'wishlist', $to, language_default(), $params, $from, TRUE);
}