From: Roland Häder Date: Wed, 18 May 2016 07:55:46 +0000 (+0200) Subject: opps, use addedUser for having the id number available X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=31bf7675b33a4e4876baf3fc6443d57755fbea57;p=addressbook-mailer-ejb.git opps, use addedUser for having the id number available --- diff --git a/src/java/org/mxchange/jusercore/model/register/AddressbookUserRegistrationSessionBean.java b/src/java/org/mxchange/jusercore/model/register/AddressbookUserRegistrationSessionBean.java index 30aeb2b..54b0b09 100644 --- a/src/java/org/mxchange/jusercore/model/register/AddressbookUserRegistrationSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/register/AddressbookUserRegistrationSessionBean.java @@ -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