]> git.mxchange.org Git - jfinancials-mailer-ejb.git/commitdiff
opps, use addedUser for having the id number available
authorRoland Häder <roland@mxchange.org>
Wed, 18 May 2016 07:55:46 +0000 (09:55 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 21 May 2016 11:51:32 +0000 (13:51 +0200)
src/java/org/mxchange/jusercore/model/register/AddressbookUserRegistrationSessionBean.java

index 30aeb2b98e26b41c4491c8ab8b90af141193a5df..54b0b09d99f1fbd615ee049029d07f886e6c6737 100644 (file)
@@ -172,7 +172,7 @@ public class AddressbookUserRegistrationSessionBean extends BaseDatabaseBean imp
 
                try {
                        // Create email address and set
-                       emailAddress = new InternetAddress(user.getUserContact().getContactEmailAddress());
+                       emailAddress = new InternetAddress(addedUser.getUserContact().getContactEmailAddress());
                } catch (final AddressException ex) {
                        // Throw again
                        throw new EJBException(ex);
@@ -180,7 +180,7 @@ public class AddressbookUserRegistrationSessionBean extends BaseDatabaseBean imp
 
                // Send email
                // TODO: Internationlize the subject line somehow
-               this.sendEmail("Registration", "registration", emailAddress, user); //NOI18N
+               this.sendEmail("Registration", "registration", emailAddress, addedUser); //NOI18N
 
                // Trace message
                this.getLoggerBeanLocal().logTrace(MessageFormat.format("registerUser: addedUser={0},addedUser.userId={1} - EXIT!", addedUser, addedUser.getUserId())); //NOI18N