Package org.hoteia.qalingo.core.email.bean

Examples of org.hoteia.qalingo.core.email.bean.UserNewAccountConfirmationEmailBean


     */
    public void buildAndSaveUserNewAccountMail(final RequestData requestData, final UserForm userForm) throws Exception {
        final MarketArea marketArea = requestData.getMarketArea();
        final String contextNameValue = requestData.getContextNameValue();

        final UserNewAccountConfirmationEmailBean userNewAccountConfirmationEmailBean = new UserNewAccountConfirmationEmailBean();
        BeanUtils.copyProperties(userForm, userNewAccountConfirmationEmailBean);
        userNewAccountConfirmationEmailBean.setFromAddress(marketArea.getEmailFromAddress(contextNameValue, Email.EMAIl_TYPE_NEW_ACCOUNT_CONFIRMATION));
        userNewAccountConfirmationEmailBean.setFromName(marketArea.getEmailFromName(contextNameValue, Email.EMAIl_TYPE_NEW_ACCOUNT_CONFIRMATION));
        userNewAccountConfirmationEmailBean.setReplyToEmail(marketArea.getEmailFromAddress(contextNameValue, Email.EMAIl_TYPE_NEW_ACCOUNT_CONFIRMATION));
        userNewAccountConfirmationEmailBean.setToEmail(userForm.getEmail());

        userNewAccountConfirmationEmailBean.setTitle(userForm.getTitle());
        userNewAccountConfirmationEmailBean.setFirstname(userForm.getFirstname());
        userNewAccountConfirmationEmailBean.setLastname(userForm.getLastname());
        userNewAccountConfirmationEmailBean.setEmail(userForm.getEmail());
       
        userNewAccountConfirmationEmailBean.setUserDetailsUrl(backofficeUrlService.buildAbsoluteUrl(requestData, backofficeUrlService.generateUrl(BoUrls.PERSONAL_DETAILS, requestData)));
       
        buildAndSaveUserNewAccountMail(requestData, userNewAccountConfirmationEmailBean);
    }
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.email.bean.UserNewAccountConfirmationEmailBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.