Skip to content

Instantly share code, notes, and snippets.

@ss81
Created October 1, 2013 12:17
Show Gist options
  • Save ss81/6777586 to your computer and use it in GitHub Desktop.
Save ss81/6777586 to your computer and use it in GitHub Desktop.
How do I disable the confirmation email sent out from Drupal?
In Drupal 7, the conf variable you should add the following line in your settings.php
$conf['user_mail_register_no_approval_required_notify'] = FALSE;
The bold could take this value:
register_admin_created: Welcome message for user created by the admin.
register_no_approval_required: Welcome message when user self-registers.
register_pending_approval: Welcome message, user pending admin approval.
password_reset: Password recovery request.
status_activated: Account activated.
status_blocked: Account blocked.
cancel_confirm: Account cancellation request.
status_canceled: Account canceled.
Be careful, it's user_mail_YOUR_VARIABLE_notify.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment