Salve gente,
ho un problema con la funzione mail: questo è lo script:
Codice PHP:
<?php
// multiple recipients
$dest = '$_POST['dest']';
$dest .= '$_POST['dest']';
// subject
$obj = $_POST['obj'];
// message
$message = $_POST['text'];
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
$headers .= 'From: Birthday Reminder <birthday@example.com>' . "\r\n";
$headers .= 'Cc: birthdayarchive@example.com' . "\r\n";
$headers .= 'Bcc: birthdaycheck@example.com' . "\r\n";
// Mail it
mail($dest, $obj, $message, $headers);
?>
Mi dà
Parse error: syntax error, unexpected T_STRING in /membri/orbito/.../mail2.php on line 3
chi mi riesce ad aiutare?