Re: Turning off sending of email and user_save

Brian Fending <[email protected]>
Newsgroups gmane.comp.php.drupal.devel
Message-ID <CACdyFRMHEFVy_hj2B2DM7A6ird-uAnUC65o7G=ZdX3ay1OxRdQ@mail.gmail.com>
You could also hook_mail_alter to change $message['to'] where the server
name (or host name, but I use `uname -n` instead) does not match your
production. I recommend this over reroute_mail especially if you have a
custom utilities.module or similar that you already use on the production
site. You fix it once and forget it.


On Wed, Oct 26, 2011 at 5:44 PM, Kristin Stromberg <[email protected]>wrote:

> You can disable various email notifications under
> admin/config/people/accounts. On your development box, you might want to use
> the reroute email module (http://drupal.org/project/reroute_email)
>
>
> On Wed, Oct 26, 2011 at 2:40 PM, Iain William Wiseman <
> [email protected]> wrote:
>
>> Hi,
>>
>> Is there a way to turn off sending of e-mail when updating user accounts.
>> My understanding is that e-mails are sent when an account changes from
>> inactivate to active. Love the functionality but testing with real data
>> makes this inconvenient. On my development box I have turned off the MTA but
>> this could easily be forgotten in future testing.
>>
>> Thanks,
>> Iain
>>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.