0 Members and 3 Guests are viewing this topic.
Yah , but any explanation that how does a simple function makes it ways thru the protocols ?
<?php $email = $_POST['email']; $content = nl2br($_POST['content']); $name = $_POST['name']; $sender = $_POST['sender']; $subject = $_POST['subject']; $headers = "From: $name "."<".$sender.">\r\n"; //add boundary string and mime type specification //$headers .= 'MIME-Version: 1.0' . "\r\n"; //$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; //send the email mail($email, $subject, $content, $headers ); ?>
But it doesn't require you to LOGIN to an email account and just sends an email randomly Code: [Select]<?php $email = $_POST['email']; $content = nl2br($_POST['content']); $name = $_POST['name']; $sender = $_POST['sender']; $subject = $_POST['subject']; $headers = "From: $name "."<".$sender.">\r\n"; //add boundary string and mime type specification //$headers .= 'MIME-Version: 1.0' . "\r\n"; //$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; //send the email mail($email, $subject, $content, $headers ); ?>