Did you know how to send Mail using PHP code in your Blog . I will explain it step by step. There are Two code fist code is PHP code And second code is html code. Blogger not support for php but you can save this php code in other php supported web server. If you don't have your own web hosting space you can use www.000webhost.com second code is a normal HTML code you can save this code in your blogger. you can use flowing step for save this HTML code on your blogger.
Layout -----> Add a Gadget -----> HTML/JavaScript ------> ( Add subject and copy and paste html code ) ------> save
Then open not pad and copy below code and save as a php file. After that log in your web hosting site and upload this your php page.
This is a first PHP code. You have to save this as a php file and upload your web hosting server.
Layout -----> Add a Gadget -----> HTML/JavaScript ------> ( Add subject and copy and paste html code ) ------> save
Then open not pad and copy below code and save as a php file. After that log in your web hosting site and upload this your php page.
This is a first PHP code. You have to save this as a php file and upload your web hosting server.
<title>Your message was sent successfully</title> </head> <body> <?php if ($_POST["email"]<>'') { $ToEmail = 'yourname@gmail.com'; $EmailSubject = 'From Your site '; $mailheader = "From: ".$_POST["email"]."\r\n"; $mailheader .= "Reply-To: ".$_POST["email"]."\r\n"; $mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n"; $MESSAGE_BODY = "Name: ".$_POST["name"]."<br>"; $MESSAGE_BODY .= "Email: ".$_POST["email"]."<br>"; $MESSAGE_BODY .= "Comment: ".nl2br($_POST["comment"])."<br>"; mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure"); ?> Your message was sent successfully, <a href="http://www.layan.info/">Click here to go back</a> <?php } else { ?> <form action="test.php" method="post"> <table width="400" border="0" cellspacing="2" cellpadding="0"> <tr> <td width="29%" class="bodytext">Your name:</td> <td width="71%"><input name="name" type="text" id="name" size="32"></td> </tr> <tr> <td class="bodytext">Email address:</td>