• Resolved smartlemon

    (@smartlemon)


    Hi,
    is it possible to send different Welcome Emails (after registration) depending on the usergroup?
    USer of Group1 gets another Welcome Email than users of Group2

    thx, christian

    • This topic was modified 2 years, 8 months ago by smartlemon.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @smartlemon

    Unfortunately, this requires customization on your end. You can try this tutorial to create email notifications and then use the following action hook to attach the email notification to this event:

    add_action("user_register","um_080521_send_welcome_email", 10, 2);
    function um_080521_send_welcome_email( $user_id, $user_data ){
           // do something, add the send email
            um_fetch_user( $user_id );
            $role = um_user("role");
            if( 'subscriber-one' == $role ){
                 // send welcome email #1
            }
            if( 'subscriber-two' == $role ){
                 // send welcome email #2
            }
    }

    Regards,

    Thread Starter smartlemon

    (@smartlemon)

    Hi, thx, thats sounds great.
    bit one more question:
    “// send welcome email #1” => do you think about sending the complete mail within here, or send mails which are already configured.
    The PRoblem is, that i can only configure 1 Email in UM as Welcome Mail

    thx, christian

    Thread Starter smartlemon

    (@smartlemon)

    Hi @champsupertramp ,
    can you maybe send me an answer on above question?
    thx,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @smartlemon

    You can create a custom UM email template. Please see this tutorial.

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @smartlemon

    ..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 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Welcome Email User Group’ is closed to new replies.