Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ($_POST[nome] != "" && $_POST[cognome] != ""){
- //costruisce il corpo della mail
- $body = "";
- foreach($HTTP_POST_VARS as $key => $value){
- $body = $body.$key.": ".$value."\r\n";
- }
- $testoMail = "Email inviata dal sito http://www.lenciabbigliamento.it \n\r
- $body\r\n
- ";
- $test = @mail("origin.of@gmail.com","Contatto dal sito http://www.lenciabbigliamento.it ",$testoMail,
- "From: $_POST[email]\r\n" .
- "Reply-To: $_POST[email]\r\n" .
- "X-Mailer: Space New SRL/" . phpversion());
- if($test)
- echo "ok";
- else
- echo "non ok";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement