il codice che ho adesso è questo:
ma adess da outlook vedo il codice html...ed inoltre non vedo più l'indirizzo del mittente, contenuto nella variabile $emailcodice:$body_top = "--Message-Boundary\n"; $body_top .= "Content-type: text/html; charset=iso-8859-1\n"; $body_top .= "Content-transfer-encoding: 7BIT\n"; $body_top .= "Content-description: Mail message body\n\n"; $mess = $body_top . $testo; $header = "MIME-Version: 1.0\r\n"; $header .= "Content-Type: text/html; charset=iso-8859-1\r\n"; $header .= "From: ".$email."\r\n"; $header .= "X-Mailer: Microsoft Office Outlook, Build 11.0.5510\r\n"; if (mail("mia@mail.it", "Oggetto", $mess, $header)){ header("Location: send_mail.php"); }![]()

Rispondi quotando