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);
}
| Comment | File | Size | Author |
|---|---|---|---|
| rsvp.module_2.patch | 707 bytes | jsenich |
Comments
Comment #1
owahab commentedComment #2
owahab commentedCommitted to 5.1-dev and will appear in next release.
Comment #3
owahab commented