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
My current work-around is to set their password the same as their Alternate Login and just use
!passwordin 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
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
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.
#4
will consider integrating the mini-module in #3 into alt_login for the 7.x branch.