You would need to create a CGI script of some kind. You can write CGI scripts in practically any language -C, C++, Perl, Python, AppleScript (if your server runs on a Mac), Unix shell scripting, and so on- but some are more suited to this task than others, and some of them will require your server to specifically support that language, and some places won't allow you to use CGI scripts at all.
I'm going to recommend, however, that you not do this. Unless you are extremely careful in how you design the script, spammers will find a way to hijack it for their own Nefarious Purposes (and they will find your site; they always do). Write some more basic scripts first, learn about secure mail form design, get your feet under you, and then go about it. Or have someone else write it for you; that's a perfectly viable route to take.