How do I get my contact form to send to my email?

I am currently putting together my portfolio, and I wanted to add a contact form for questions/suggestions/recommendations/the like, but I can’t figure out how to actually send to my email. I’ve tried several different methods with no avail, but here is the code I’m currently trying to emulate. Since it’s also Codepen based, I figured it would be more sure to work.

My own code ishere. Is there something that I’m missing, or something that I’m doing wrong? Thanks in advance!