Skip to content

Instantly share code, notes, and snippets.

@aborruso
Created October 29, 2011 17:18
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 aborruso/1324804 to your computer and use it in GitHub Desktop.
Save aborruso/1324804 to your computer and use it in GitHub Desktop.
4ga-php
<?php
$nome = $_POST['nome'];
$fromwhy = $_POST['email'];
$messaggio = $_POST['messaggio'];
//Imposto le impostazioni di invio mail
/*Destinatario*/
$a = "gabriele@gabrieletra.it";
/*Oggetto email*/
$oggetto = "Nuovo Messaggio dal blog";
/*Messaggio email*/
$messaggio = "Ciao Gabriele, ti hanno mandato un messaggio: $messaggio . Il messaggio ti è stato spedito da $fromwhy con la seguente email: $email ";
mail($a,$oggetto,$messaggio);
echo "Messaggio inviato, ti risponderò al più presto"
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment