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);
// 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