src/main/java/edu/kit/informatik/pcc/webinterface/datamanagement/AccountDataManager.java
/**
     * This method starts the verification by creating a link and sending it
     * per mail to the user.
     *
     * @param id the uuid of the account to verify.
     */
This method starts the verification by creating a link and sending it
per mail to the user.

@param id the uuid of the account to verify.
This method starts the verification by creating a link and sending it per mail to the user . @param id the uuid of the account to verify .
private static boolean sendVerificationMail(UUID id, VaadinSession session) {
        Boolean ret = true;
        String text = messages.getString("mailText");
        String subject = messages.getString("mailSubject");
        String link = HOST + "webservice/verifyAccount?uuid=" + id.toString();
        text += link;
        Account account = (Account) session.getAttribute("account");
        String to = account.getMail();
        String from = messages.getString("mail");
        try {
            MailService.send(from, to, subject, text);
        } catch (EmailException | IOException e) {
            e.printStackTrace();
            ret = false;
        }
        return ret;
    }
private static boolean sendVerificationMail ( UUID id , VaadinSession session ) { Boolean ret = true ; String text = messages . getString ( "mailText" ) ; String subject = messages . getString ( "mailSubject" ) ; String link = HOST + "webservice/verifyAccount?uuid=" + id . toString ( ) ; text += link ; Account account = ( Account ) session . getAttribute ( "account" ) ; String to = account . getMail ( ) ; String from = messages . getString ( "mail" ) ; try { MailService . send ( from , to , subject , text ) ; } catch ( EmailException | IOException e ) { e . printStackTrace ( ) ; ret = false ; } return ret ; }
This method starts the verification by creating a link and sending it
 per mail to the user.
This method starts the verification by creating a link and sending it per mail to the user .