Can’t call function to send email using EmailJS

So I have a project that displays upcoming baby vaccinations. I am trying to send the upcoming vaccines outcome to any email requested. But for some reason I cannot even call the function.
HTML code for button:

<button id="mail" type="button" onclick="checkupFutureEmail()"> E-posta gönder </button>

Javascript:

enter image description here

enter image description here

I tried a lot of things asked AI for help but unfortunately really couldn’t get any help. The main issue is the checkupFutureEmail() Function not even being called. Because I put console.log and when I click the button nothing happens.