Skip to content

Instantly share code, notes, and snippets.

@caioerick
Last active December 18, 2015 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caioerick/5735224 to your computer and use it in GitHub Desktop.
Save caioerick/5735224 to your computer and use it in GitHub Desktop.
Source code for submit mail with PHP
<?php
// Variables
$to = $_REQUEST['to'];
$message = $_REQUEST['message'];
$subject = $_REQUEST['subjet'];
$from = $_REQUEST['from'];
// Headers
$headers = "From: ".$from."\r\n";
$headers .= "Content-type: text/plain; charset=utf-8\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=UTF-8\r\n";
$headers .= "X-Priority: 1\r\n";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment