Change judgement condition for availability of coffee breaks, changing MAIL to RESEND in the following expression: done
$selectStmt = "select sid from $tablesponsor where sponcode = 'CBMA' and reg_status = '' and (`totaldue`=0 or paytype='RESEND')";