<div dir="ltr">why not use auto assign role: <a href="http://drupal.org/project/autoassignrole">http://drupal.org/project/autoassignrole</a> and rules to send out a custom mail once a user of the role has been created?<br>
<br><div class="gmail_quote">On Wed, Jun 8, 2011 at 9:44 PM, Jeff Hartman <span dir="ltr"><<a href="mailto:lists@jeffhartman.com">lists@jeffhartman.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
That might be the route I take. It means multiple emails to the user, but that might be okay since replicating the user_register_submit function would mean making sure we keep it consistent with the core user module.<br>
<br>
Thanks!<br>
<div><div></div><div class="h5"><br>
On Jun 8, 2011, at 1:37 PM, Ms. Nancy Wichmann wrote:<br>
<br>
> You could make your user submit fire first (using array_unshift for the handlers) and allow the standard email to go out after you have done your thing.<br>
><br>
> Nancy<br>
><br>
> Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.<br>
><br>
>> From: Jeff Hartman <<a href="mailto:lists@jeffhartman.com">lists@jeffhartman.com</a>><br>
>> To: <a href="mailto:development@drupal.org">development@drupal.org</a><br>
>> Sent: Wednesday, June 8, 2011 2:33 PM<br>
>> Subject: Re: [development] User registration email<br>
>><br>
>> I still want to keep the standard user registrations emails since this is a custom page with a registration form for people to sign up for an event. We still get people creating accounts for the site for other purposes.<br>
>><br>
>> The event registration page just happens to be creating a Drupal user account at the same time to simplify the account creation process for people visiting for this specific purpose.<br>
>><br>
>> >> A client I am working for asked to have a special landing page set up for user registration for an event. The registration form uses user_register to create a Drupal account (using Drupal 6). Form works great, creates account and logs people in upon account creation.<br>
>> >><br>
>> >> How do I go about creating and sending a custom email that includes the new account username and auto-generated password? Do I need to create my own user_register_submit function to override the current (seems redundant) or is there a simpler way.<br>
>><br>
><br>
</div></div></blockquote></div><br></div>