Closed (fixed)
Project:
Invite
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Sep 2006 at 15:05 UTC
Updated:
23 Sep 2006 at 13:15 UTC
The invite code use's PHP's "mail" function to send the invite. When the SMTP module is also installed, this results in the message not being sent (if sendmail is not enabled on the server). The solution is to use the drupal user_mail function instead in the _invite_send_invite function:
case "mail":
//if ($success = mail($email, $subject, wordwrap($body, 72), "From: $from\r\nReply-To: $replyto")) {
if ($success = user_mail($email, $subject, wordwrap($body, 72), "From: $from\r\nReply-To: $replyto")) {
drupal_set_message(t('Your invitation was sent successfully.'));
}
Comments
Comment #1
Nick Wilson commentedDone!
thx
Comment #2
(not verified) commented