When I choose admin settings for this module hiding the email registration, the supposed behaviour is to fill an hidden email field with a fake email adress or with an auto-generated email with a specific domain.

After a new user registration (in any case) I have almost a WSOD (white screen of death) with a message on top:
"Invalid address: You must provide at least one recipient email address"

The user account is created but looking in the user table of the database, I can see that email field is blank.
I have tested localemail also on a fresh new test installation (Only 6.14 core modules, Garland) with same results.

Any help much appreciated, or reporting succesful installations of this module on Drupal 6.14.

Thanks,
Pedro.

Comments

pedrosp’s picture

Assigned: Unassigned » pedrosp
Status: Active » Fixed

OK solved,
I use SMTP module to send with PHPmailer from the Drupal instalation.

The localemail module generates a blank email during the validation process, but there is a rule in user.module core that send a welcome email to any new account, and because of blank email, PHPmailer shows an error.

It is necesary then to disable this automating sending to avoid a PHPmailer error, annoying for the usability.
Don't hack core, just add at the beginning of localemail.module, line 4 for example:

variable_set('user_mail_register_no_approval_required_notify', false);
 variable_set('user_mail_register_pending_approval_notify', false);
 variable_set('user_mail_register_admin_created_notify', false);
 

Tip found on :
http://drupal.org/node/257202#comment-1725432

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.