E Online Support - Free Software Download
how to mail using php
PHP mail

MAIL FUNCTION PHP SCRIPT To set a mail function we just have to call the mail() and have to pass some attributes like email address, to whom we are mailing, Subject of the mail, message and sender email address. The syntax is of mail function is as: mail("abc@example.com",$subject,$message,"From: $from ");
<h2>Feedback Form</h2>
// display form if user has not clicked submit
if (!isset($_POST["submit"])) {
  <form method="post" action="<?php echo $_SERVER["PHP_SELF"];?>">
  From: <input type="text" name="from"><br>
  Subject: <input type="text" name="subject"><br>
  Message: <textarea rows="10" cols="40" name="message"></textarea><br>
  <input type="submit" name="submit" value="Submit Feedback">
} else {    // the user has submitted the form
  // Check if the "from" input field is filled out
  if (isset($_POST["from"])) {
    $from = $_POST["from"]; // sender
    $subject = $_POST["subject"];
    $message = $_POST["message"];
    // message lines should not exceed 70 characters (PHP rule), so wrap it
    $message = wordwrap($message, 70);
    // send mail
    mail("abc@example.com",$subject,$message,"From: $from\n");
    echo "Thank you for sending us feedback";
Related To:
Security Code:
Enter Security Code:
Facebook   Linkedin   Skype   Twitter