sending msg to inbox(contact us)

Posted by Oswaldlily under HTML 5 on 3/19/2014 | Points: 10 | Views : 812 | Status : [Member] | Replies : 1
In every website there is "contact us"

which contains "name/message/mobno/ are mandatory and submit(button) "

how to do this in html?


Posted by: Oswaldlily on: 3/19/2014 [Member] Starter | Points: 25

I m trying like below... but i dint get mail in inbox

<title>HTML email</title>
<p>This email contains HTML Tags!</p>
<a href="">Send Mail</a>


$to = '';
$subject = 'Test email';
$message = "Hello World!\n\nThis is my first mail.";
$headers = "From:\r\nReply-To:";
$mail_sent = @mail( $to, $subject, $message, $headers );
echo $mail_sent ? "Mail sent" : "Mail failed";
echo '<form action="" method="POST" enctype="multipart/form-data">
<input type="hidden" name="action" value="submit"/> Your name:<br />
<input name="name" type="text" value="" size="30"/> <br /> Your email:<br />
<input name="email" type="text" value="" size="30"/> <br /> Your message:<br />
<textarea name="message" rows="7" cols="30"> </textarea> <br />
<input type="submit" value="Send email"/>


Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response