Now that I have my Drupal site up and running, I would like to implement a feature that I think others might find useful. Here's a description of what I'm looking for:

My web host allows me to configure up to X mailboxes associated with my domain name. I want to assign these mailboxes to a subset of my site's registered users (e.g., username@mydomain.com, where "username" is the same as the user's registered name on my website --BTW, I expect to manually create these email accounts using my webhost's email admin tools). I then want to allow these select users to access my webhost's webmail login page from a link within the navigation block (preferrably directly above the "administer" link).

I don't wan't anything fancy like auto-login; I just want the user to be taken:

(a) to a static page with a frame that displays the webmail login form.

Or,

(b) directly to the webmail login page.

Is this capability implemented in an existing Drupal module?

I have searched and could not find anything similar, so I am trying to fugure out how to implement it myself. So far, I have created a special role for individuals that I want to assign a username@mydomain.com email to. However, I don't know where to start to implement the desired changes to the Navigation block, or creation of the associated static page/frameset, and linking it to the Navigation block code (Perhaps because I am an absolute newbie, with no business even thinking about these kinds of changes).

So, what do you all think? Does this functionality exist somewhere already? If not, how difficult is it to implement, and where should I start? Thx,

Donovan.

Comments

tdailey’s picture

if you look at my post here:

http://drupal.org/node/view/5840

You could use the role-based menus that I created to do something like that. Just create a "webmail" role and allow the users to assign themselves to it, or you could assign them yourself.

This would be in a separate block, not integrated into the drupal menus.

Donovan@drupal.org’s picture

Thanks! This could certainly help me accomplish what I am trying to do. I have a few questions though:


1) How would I modify your code to check for a "webmail" role?

I tried changing if ($user->profile_sales == "yes") to if ($user->profile_webmail == "yes") and if ($user->webmail == "yes")

But the link does not show up in the block in either case.


2) Is there a way to conditionally show this block? (e.g., show block only for users with role="weblink"?

Thx.