• Resolved kahara

    (@kahara)


    Hi,

    I have a problem on my website, when users are added on the front-end, ultimate member sends two welcome emails to the new user instead one one.

    Please assist.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @kahara

    Could you please paste here the content of both welcome emails?

    Regards,

    Thread Starter kahara

    (@kahara)

    I have customised the email, and it has images in the content. I have uploaded the screenshots here,

    https://pasteboard.co/2zEkdBHYnY2K.png – first email
    https://pasteboard.co/nXbPMbKAqSPh.png – second email

    Thread Starter kahara

    (@kahara)

    Below is the html for the email

    <div style="max-width: 500px; padding: 20px; background: #ffffff; border-radius: 5px; margin: auto; font-family: arial,sans-serif; font-size: 20px; color: #666;">
    <div style="text-align: center;"><img class="aligncenter" src="https://nidum.io/wp-content/uploads/2021/08/NIDUM-logo-template.png" alt="Welcome to Nidum" width="250" height="61" /></div>
    <div style="color: #444444; font-weight: bold;"><br />
    <div style="text-align: center; font-weight: 600; font-size: 26px; padding: 10px 0; border-bottom: solid 3px #ffff01;">{manager_name}<br />Invited you to<br />{company_name}<br /><br /></div>
    </div>
    <div style="padding: 30px 0; font-size: 20px; text-align: center; line-height: 40px;"><span style="display: block;">{manager_name} invited you to join {company_name} in NIDUM. Accept your invite to access their immersive modules.</span></div>
    <div>?</div>
    <div style="color: #666666; text-align: center;"><a href="https://localhost:8080/nidum-io/password-reset/"><img class="aligncenter" src="https://nidum.io/wp-content/uploads/2021/10/email-btn.jpg" /></a></div>
    <br /><br /><br />
    <div>Thanks!</div>
    <div>The Team @ NIDUM</div>
    </div>
    <div style="text-align: center; width: 500px; margin: auto; background: #fff; padding: 20px;"><img class="aligncenter" src="https://nidum.io/wp-content/uploads/2021/04/astronaut.png" alt="image.png" /></div>
    <div style="text-align: center; width: 500px; margin: auto; background: #fff; padding: 20px;"><img class="aligncenter" src="https://nidum.io/wp-content/uploads/2021/04/evolve.png" alt="EVOLVE AND.png" width="443" height="54" /></div>
    <div>
    <div style="text-align: center; width: 500px; margin: auto; background: #fff; padding: 20px;"><img class="aligncenter" src="https://nidum.io/wp-content/uploads/2021/04/we-are-nidum-heart.png" alt="image.png" /></div>
    </div>
    Thread Starter kahara

    (@kahara)

    @champsupertramp also i think its an issue with my 2 custom fields which i have hooked as below;

    add_filter( 'um_template_tags_patterns_hook', 'my_template_tags_patterns', 10, 1 );
    function my_template_tags_patterns( $placeholders ) {
         $placeholders = array(
    		'{company_name}',
    		'{manager_name}',
    	);
         return $placeholders;
    }
    
    add_filter( 'um_template_tags_replaces_hook', 'my_template_tags_replaces', 10, 1 );
    function my_template_tags_replaces( $replace_placeholders ) {
        global $wpdb;
        $company_name = str_replace("um_","",str_replace("-".substr(um_user('role'), strrpos(um_user('role'), "-") + 1),"",um_user('role')));
        $added_by = get_user_meta( um_user( 'ID' ) , 'added_by', true );
        $module_data = $wpdb->get_row("SELECT display_name FROM wp_users WHERE ID = '$added_by' ");
    
        $replace_placeholders = array(
    		strtoupper($company_name),
    		$module_data->display_name,
    	);
        return $replace_placeholders;
    }

    When i delete one eg. {manager_name}, the welcome email is being sent once as required, please assist.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @kahara

    Do you have other customizations with UM hooks that we can review?

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @kahara

    ..This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help… ??

    Regards,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘User registration sending two welcome emails’ is closed to new replies.