フォームで mailto を使用して、デフォルトのメール サービスを開き、メールを作成しています。ただし、フォームのすべてのフィールドは、電子メールに表示されると見栄えが悪くなります。noun1、verb、noun2 の 3 つのフィールドがあり、それらが送信されると、メールの本文に次のように表示されます。
noun1= I
verb= ate
noun2= food
送信がクリックされたときにこれらの変数を電子メール本文で整理/表示する方法を指定して、電子メール本文で次のようにフォーマットする方法はありますか?
I ate food
?
リクエストによるフォーム:
<form id= "formx" method="post" action="mailto:email@email.com" enctype="text/plain">
<p><label for="id_noun1">noun1:</label>
<input id="id_noun1" type="text" name="noun1"/></p>
<p><label for="id_verb">Verb:</label>
<input id="id_verb" type="text" name="verb" /></p>
<p><label for="id_noun2">noun2:</label>
<input id="id_noun2" type="text" name="noun2"/></p>
<input type="submit" value="Submit" />