The problem is that in the call to drupal_mail inside the rsvp_mail function, $from is always being set to NULL.

function rsvp_mail($mailkey, $to, $subject, $body, $from = NULL, $headers = array()) {
  $site_name = variable_get('site_name', 'drupal');
  $title .= 'RSVP: '. $subject .' ['. $site_name.']';
  return drupal_mail($mailkey, $to, $title, $body, $from = NULL, $headers);
}

To fix it the NULL should be removed from the call to drupal_mail:

function rsvp_mail($mailkey, $to, $subject, $body, $from = NULL, $headers = array()) {
  $site_name = variable_get('site_name', 'drupal');
  $title .= 'RSVP: '. $subject .' ['. $site_name.']';
  return drupal_mail($mailkey, $to, $title, $body, $from, $headers);
}
CommentFileSizeAuthor
rsvp.module_2.patch707 bytesjsenich

Comments

owahab’s picture

Assigned: Unassigned » owahab
Status: Needs review » Reviewed & tested by the community
owahab’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 5.1-dev and will appear in next release.

owahab’s picture

Status: Fixed » Closed (fixed)