Rule to conditionally send email template

I have a rule with the following content:

function (user, context, callback) {
	var email_verified = user && user.user_metadata && user.user_metadata.email_verified;
	var loginsCount = context && context.stats && context.stats.loginsCount;
	var shouldSendEmail = !email_verified && loginsCount <= 1;

	if (shouldSendEmail) {
		console.log("SHOULD SEND VERIFICATION EMAIL");
	} else {
		return callback(null, user, context);
	}
}

This is working as expected, but I would like to trigger the Verification Email template where the console.log is. I’ve read the Conditionally send email verification ticket and that helped, but I do not understand how to trigger an email template to be sent.

Any assistance is appreciated.

As it has been more than a few months since this topic was opened, and there has been no reply or further information provided as to the existence of the issue, we are closing this topic. Please don’t hesitate to create a new topic if this issue is still present, we would be happy to work with you to help find a resolution.