Closed (fixed)
Project:
RSVP
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
26 Jun 2007 at 18:43 UTC
Updated:
1 Jul 2007 at 07:19 UTC
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