diff --git a/bin/account-manager-web.pl b/bin/account-manager-web.pl
index 1c8d8e8b443d07059cee868324503c38999f2a7f..ce99a54ccbb6f5911dc9ebe7748e730221031a6d 100755
--- a/bin/account-manager-web.pl
+++ b/bin/account-manager-web.pl
@@ -330,7 +330,8 @@ sub req_generate_token {
 
     ## Send the challenge email with the token
     &IdPAccountManager::Tools::mail_notice('template' => 'templates/mail/send_authentication_token.tt2.eml', 
-         		 'data' => $self->{'param_out'});
+                                           'to' => $self->{'param_in'}{'email_address'},
+                                           'data' => $self->{'param_out'});
     
     return 1;
 }