If you want to do this the form way, I am sure Roger will
identify the problem with your script.
The alternative is to provide a button or a link that creates
an email with the To field completed as a minimum but the option to
complete a subject line and include some default text, Type your
message here, for example. Personally I prefer that when I go to a
website as I then have a record of the message sent which I don't
have when it is done via a form. Snippet 4 on my site covers the
method.
Click
here.
Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.