grazie credo di aver individuato lo script che invia la mail.... lo posto...
Codice PHP:
<?php
function reg_get_unique_id()
{
//restituisce un ID univoco per gestire la registrazione
list($usec, $sec) = explode(' ', microtime());
mt_srand((float) $sec + ((float) $usec * 100000));
return md5(uniqid(mt_rand(), true));
}
function ricava_titolo($body)
{
$supp = trim(str_replace(array("\r","\n","\t"), "", $body));
preg_match_all("(<div><h1(.*?)</h1>)", $supp , $risultato);
$str = explode(">", strip_tags( $risultato[1][0]));
return $str[1];
}
function sendMail($text)
{
error_reporting(E_ALL);
// Genera un boundary
$mail_boundary = "=_NextPart_" . md5(uniqid(time()));
$subject = "Newsletter";
$sender = "newsletter@miosito.it";
$headers = "From: $sender\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: multipart/alternative;\n\tboundary=\"$mail_boundary\"\n";
$headers .= "X-Mailer: PHP " . phpversion();
// Corpi del messaggio nei due formati testo e HTML
$html_msg = "<html></head><body><div>".$text."</div></body></html>";
$msg = "";
$msg .= "\n--$mail_boundary\n";
$msg .= "Content-Type: text/html; charset=\"iso-8859-1\"\n";
$msg .= "Content-Transfer-Encoding: 8bit\n\n";
$msg .= $html_msg;
// Boundary di terminazione multipart/alternative
$msg .= "\n--$mail_boundary--\n";
$result = mysql_query("select email from mailing_list");
while ($to = mysql_fetch_array($result, MYSQL_NUM)) {
if (mail($to[0], $subject, $msg, $headers,"-f$sender"))
{ }
else {
$page = 'newsLetterKo.php';
header("Location: $page");
exit;
}
}
$page = 'newsLetterOk.php';
header("Location: $page");
}
?>
il fatto è che nel dib nella parte relativa alla newsletter mi scrive il path dell'immagine, però non lo processa quando eseguo l'invia, si limita solo a mandare delle mail se utilizzo il testo normale, quando carico un'immagine nel db, lui salva il path, nemmeno quello assoluto, e al momento dell'invio della mail non manda nulla.... dove sbaglio????