Hi,
Following is the "cloud script" to trigger the send email verification to the user , When I run this script for particular playfab user, it continuosly sending me the email. Where as this should be run only one time.
/*
@ Method Name:callForSendingVerificationEmail
@ Descripion: Verification email send to the contact email.
@ Created At : 25-09-2018
*/
handlers.callForSendingVerificationEmail = function (args, context) {
var response = server.SendEmailFromTemplate({
EmailTemplateId: "237D91B7AD8391A0",
PlayFabId: currentPlayerId
});
var message ="Verification email send to the contact email with PlayFabId => "+ currentPlayerId return {
messageValue: message,response:response
};
}// End function