Sending Alternate Login in Welcome e-mail

joemako - February 28, 2008 - 16:40
Project:Alternate Login
Version:7.x-1.x-dev
Component:Documentation
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Thank you for very useful module.

When I create a new user and select to send them a welcome e-mail, is it possible to include their Alternate Login in the body of the e-mail?

In other words, is there a variable that I can use to display this field like !username ?

Best Regards,

#1

joemako - February 28, 2008 - 21:42

My current work-around is to set their password the same as their Alternate Login and just use !password in the Welcome e-mail body.

So this works for me, but if there is a way to get to the variable, that would be nice.

#2

hunmonk - March 23, 2008 - 20:48

this could probably be implemented by leveraging hook_mail_alter() and hook_form_alter(). i have no interest in writing this patch, but if somebody sponsors me to write it, or submits a patch for it, i'll be happy to review and commit if it's quality work.

#3

adaven - November 13, 2008 - 00:23

Here's a quick module I put together that implements this feature. It's for D6, but should be easy to backport to D5. Thanks go to hhanna for the idea.

AttachmentSize
alt_login_mail.zip 1.38 KB

#4

hunmonk - October 16, 2009 - 17:33
Version:5.x-1.8» 7.x-1.x-dev

will consider integrating the mini-module in #3 into alt_login for the 7.x branch.

 
 

Drupal is a registered trademark of Dries Buytaert.