I tried versions 4.7 and cvs. They both would send emails without a subject heading... The subject heading would be in the body of the email.
I copy/pasted the user_mail line from the contact.module and changed it a bit (mostly the From part) to swap out with yours and now it works...
I'm running php5 w/ php_mailer, ubuntu, drupal 4.7rc2
Here's the changes I made:
if (!user_mail($user->mail, $subject, wordwrap($body, 72), "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from")) {
and your original
if (!user_mail($user->mail, $subject, wordwrap($body, 72), "From: $from_name <$from>\nX-Mailer: Drupal Notify module (http://drupal.org/project/notify)\nReturn-path: <$from>\nErrors-to: $from\n")) {
Comments
Comment #1
RobRoy commentedFix committed to HEAD. Please download the latest version from HEAD CVS and test with Drupal 4.7.x. Let me know if this fixes the problem and I'll backport the change to DRUPAL-4-7.
Comment #2
(not verified) commented