ciao gente.
ho modificato questo script, trovato qui sul forum:
il problema è che non ricevo ninete..Codice PHP:
<?php
include_once('check_login.php');
include('../header.php');
include('conn.php');
$oggetto='Richiesta blog';
$testo=$_POST['testo'];
$attach = $_FILES["allegato"]["tmp_name"];
$file_name = $_FILES["allegato"]["name"];
$file_type = $_FILES["allegato"]["type"];
$file_size = $_FILES["allegato"]["size"];
$boundary = md5(uniqid(microtime()));
$file = @fopen($attach, "rb");
$contents = @fread($file, $file_size);
$encoded_attach = chunk_split(base64_encode($contents));
@fclose($file);
$mail_headers = "From: lsdBlogs\n";
$mail_headers .= "MIME-version: 1.0\n";
$mail_headers .= "Content-type: multipart/mixed; boundary=\"$boundary\"\n";
$mail_headers .= "Content-Transfer-Encoding: 8bit\n";
$mail_body = "This is a multi-part message in MIME format.\n--$boundary\n";
$mail_body .= "Content-Type: text/plain; charset=iso-8859-9\n";
$mail_body .= "Content-Transfer-Encoding: 8bit\n\n" . $testo ."\n";
$mail_body .= "--$boundary\nContent-type: $file_type;\n name=\"$file_name\"\n";
$mail_body .= "Content-Transfer-Encoding: base64\nContent-Disposition: attachment\n filename=\"$file_name\"\n";
$mail_body .= chr(13) . chr(10).$encoded_attach."\n";
$dest = "lsdblogs@altervista.org";
mail($dest, $oggetto, $mail_body, $mail_headers);
echo "La mail dovrebbe essere stata mandata";
?>
l'alias fa riferimento ad una casella su FREEMAIL.it..
grazie.