fork download
  1. <?php
  2. $to = 'akulenko@entrydell.com'; // this is recipients Email address
  3. $from = 'kaninchen22@mail.ru'; // this is the sender's Email address
  4. $first_name = 'Leonid';
  5. $last_name = 'last_name';
  6. $subject = 'Form submission';
  7. $subject2 = 'Copy of your form submission';
  8. $message = '192.169.212.2';
  9. $message2 = 'Here is a copy of your message';
  10. $headers = 'From:';
  11. $headers2 = 'From:';
  12. mail($to,$subject,$message,$headers);
  13. mail($from,$subject2,$message2,$headers2); // sends a copy of the message to the sender
  14. echo "Mail Sent. Thank you " . $first_name . ", we will contact you shortly.";
  15. // You can also use header('Location: thank_you.php'); to redirect to another page.
  16. // You cannot use header and echo together. It's one or the other.
  17. ?>
Success #stdin #stdout #stderr 0.02s 26356KB
stdin
Standard input is empty
stdout
Mail Sent. Thank you Leonid, we will contact you shortly.
stderr
sh: 1: /usr/sbin/sendmail: not found
sh: 1: /usr/sbin/sendmail: not found