
User Notification Settings - Finovara
Hello everyone! In the latest update to Finovara , I implemented user notification settings. This feature allows users to decide whether they want to receive email notifications for important account events. What this feature does Users can now enable or disable notifications for important events happening in their account. When notifications are enabled and the user: changes their password changes username deleted account the system will send an email notification to the address assigned to his account informing his of the change. Example of mail sending method: @Async public void sendEmail ( User user , String subject , String templatePath , String username , String email ) { try { MimeMessage message = javaMailSender . createMimeMessage (); MimeMessageHelper helper = new MimeMessageHelper ( message , true , "UTF-8" ); helper . setTo ( user . getEmail ()); helper . setFrom ( "Finovara <" + senderAddress + ">" ); helper . setReplyTo ( senderAddress ); helper . setSubject ( subject );
Continue reading on Dev.to
Opens in a new tab



