• Resolved dwheeler

    (@dwheeler)


    Is there a way to send an email to the user after they connect the first time using the Social Login?

    Not the verification email since I’m not requiring that.

    thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Claude

    (@claudeschlesser)

    Hello,

    you can use an action like this:

    function oa_social_login_send_email ($user_data, $identity)
    {
    	//Setup Mail
    	$recipient = $user_data->user_email;
    	$subject = 'Welcome!';
    	$body = 'Welcome to our blog';
    
    	//Send Mail
    	@wp_mail ($recipient, $subject, $body);
    }
     
    //This action is called whenever Social Login adds a new user
    add_action ('oa_social_login_action_after_user_insert', 'oa_social_login_send_email', 10, 2);
Viewing 1 replies (of 1 total)
  • The topic ‘Welcome Email’ is closed to new replies.