javascript - sending an email through HTML Form Action -
i little confused on how send e-mail through
<form action="mailto:michael@microsoft.com?subject=hi michael" method="post">
if have following text boxes input information:
name
subject
e-mail of user
message
how fit information e-mail being sent? ie: when open email see:
from: bob@microsoft.com subject: hey message: message.
<form action="mailto:you@hotmail.com?subject=hi" method="post"> <table width="200" border="0"> <tr> <td>name </td> <td><input type="text" name="name" id="name"/></td> <td> </td> <td> </td> </tr> <tr> <td>email </td> <td><input type="text" name="email" id="email"/></td> <td> </td> <td> </td> </tr> <tr> <td>subject </td> <td><input type="text" name="subject" id="subject"/></td> <td> </td> <td> </td> </tr> <tr> <td>message</td> <td><textarea></textarea></td> <td> </td> </tr> <tr> <td> <br></td> <td><input type="submit" class="btn1" value="send!"></td> <td></td> <td> </td> </tr> </table> </form>
you can't send e-mail via form action. need send e-mail server-side.
Comments
Post a Comment