• Resolved rafaelzrt

    (@rafaelzrt)


    Hello,

    I have an automation to import users to my site and I noticed that UM emails are not fired to these users.

    Is this a normal behaviour? Is there a way I can use UM emails when I create new users that are imported to my site?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Yurii

    (@yuriinalivaiko)

    Hello @rafaelzrt,

    This depends on how you import users.

    If you’re importing manually from a CSV file, you’ll need to set the status of the imported users after importing. This will send the necessary email notifications (unless you’ve disabled them). Follow instructions in this article: https://docs.ultimatemember.com/article/1786-how-to-approve-send-activation-email-to-imported-users

    If you’re importing automatically using some API, then you should write a PHP function that is triggered after importing and sets the status. Link your function to a hook that is triggered on importing.

    Code examples:

    Set the “Approved” status. Send the “Account Welcome” email.
    UM()->common()->users()->approve( $user_id );

    Set the “Waiting email confirmation” status. Send the “Account Activation” email.
    UM()->common()->users()->send_activation( $user_id );

    Regards

    Plugin Support Yurii

    (@yuriinalivaiko)

    Hi rafaelzrt,

    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 if any other questions come up and we’d be happy to help.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.