S.t.e.r.l.o.k.
Utente Èlite
- Messaggi
- 1,998
- Reazioni
- 129
- Punteggio
- 101
Salve a tutti
In questo contesto PHP, all'interno di un conctat form, che viene richiamato dalla pagina html... mi spareste dire la stringa da aggiungere per ricevere la e-mail dal conctat form con l'IP del mittente:
In questo contesto PHP, all'interno di un conctat form, che viene richiamato dalla pagina html... mi spareste dire la stringa da aggiungere per ricevere la e-mail dal conctat form con l'IP del mittente:
PHP:
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$message = $_POST['message'];
$from_add = "info@sitointernet.com";
$to_add = "miaemail@gmail.com";
$subject = "RICHIESTA SITO INTERNET";
$message = "Name*:$name \n Email*: $email \n Phone: $phone \n
Message*: $message";
$headers = "From: $from_add \r\n";
$headers .= "reply-to: $email \r\n";
$headers .= "Return-Path: $from_add\r\n";
$headers .= "X-Mailer: PHP \r\n";
if(mail($to_add,$subject,$message,$headers))
{
$msg = "Mail sent";
}
print "<p> grazie $name per il tuo messaggio,
ti contatteremo a breve. <a href=\"http://www.sitointernet.com\">Clicca qui</a>
per tornare al sito </p>" ;