Matt Pascoe
Matt Pascoe

Reputation: 8991

Auto generate email account during Drupal account registration?

I was wondering how to auto generate a user email accounts in Drupal? I do not have a host currently but am trying to get my head around how this would be done.

Upvotes: 1

Views: 938

Answers (4)

Doka
Doka

Reputation: 11

There is a Drupal module for that: the Mailfix for Postfix module. Here is an excerpt from its project page:

... integrates Drupal with Postfix, providing email accounts to regular Drupal accounts.

For this module to work you must have previously installed and configured Postfix 2.1 or greater. A step-by-step installation guide for an Ubuntu 8.04 server is available at HowToForge.

Once your Postfix server is appropriately configured you may install this Drupal module.

Upvotes: 1

HipHop-opatamus
HipHop-opatamus

Reputation: 334

Drupal is not an email server - hence you must connect Drupal to an email server in some way, most likely through the use of a custom module.

Upvotes: 0

cam8001
cam8001

Reputation: 1641

The other way you could do it is by using exec on your local server to run a script which adds a mail account. It really depends on your server environment.

Upvotes: 0

ceejayoz
ceejayoz

Reputation: 179994

The Postfix mail server allows you to use a set of MySQL tables to set up mail accounts. With a little bit of custom coding against hook_user(), you could have new users get added to your Postfix tables and thus have e-mail addresses all nicely setup ready to go.

Upvotes: 1

Related Questions