Douglas Adams

We are stuck with technology when what we really want is just stuff that works.

Albert Einstein

It has become appallingly obvious that our technology has exceeded our humanity.

Jose Manuel Rodriguez Delgado

Can you avoid knowledge? You cannot! Can you avoid technology? You cannot! Things are going to go ahead in spite of ethics, in spite of your personal beliefs, in spite of everything

Sergey Brin

Technology is an inherent democratizer. Because of the evolution of hardware and software, you’re able to scale up almost anything. It means that in our lifetime everyone may have tools of equal power.

Douglas Adams

Most of the time spent wrestling with technologies that don't quite work yet is just not worth it for end users, however much fun it is for nerds.

Wednesday, February 15, 2012

Php mail sending code for blog + send email in PHP

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 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.

<title>Your message was sent successfully</title> </head> <body> <?php if ($_POST["email"]<>'') { $ToEmail = ''; $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="">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>