Form that can use an attachment and email to To recipient

I need to find a way to build a form… which would allow me to submit a
from and to email address and attach a txt file and then submit the
form to the to address

You will need to use a graphic user interface for that, try FXRuby. For
sending e-mail you could use WIN32OLE to connect to Outlook if you are
on Windows.