I have this code for a contact form in html:
<form method=post action=sendmail.php>
<div class=one_third>
<label>Name</label>
<input type=text name=author value id=name />
</div>
<div class=one_third>
<label>Email</label>
<input type=text name=email value id=email />
</div>
<div class="one_third last">
<label>Subject</label>
<input type=text name=subject value id=subject />
</div>
<div class=full_width>
<label>Your Message</label>
<textarea name=msg id=msg></textarea>
</div>
<input type=submit name=submit value=Submit />
</form>
I would likes to know if you can provide me with a php code, to go inside "sendmail.php" that will actually send the email.
Here you go bud this will work with your form you posted above if you have questions let me know.
For the "echo file_get_contents" you can create a page that you want your client to see after that tells them there message was sent. If you want it plain Jane then just echo Your message was sent. Hope this helps.
First of all, you should try to look for answers before you post questions, this is pretty much what the first result of googling "php send mail" will show you:
The second thing is, I don't know what do you want to do with your author field. I suspect you have never sent an email with you having to enter who you are in any input field. The client kind of does that for you. So, with that in mind, I just left author at the bottom of the message.
This all providing you have a working email system set up in php.ini configuration settings.