you cant just copy the code from the detail page to the insert page.
the insert page now has 2 problems:
1) The insert record behavior redirects to the detail page before the email can be sent.
2) The insert page does not have the WADAusers recordset on it that is set to be used as the email address column.
to put the behavior on the insert page, you will need to use the form data, not the recordset data and you will need to edit the insert record behavior so that it does not redirect to the details page.