Originariamente inviato da KolfKord
Ragazzi rettifico ho risolto il problema sopra ma quando allego alla mail un pdf mi esce ancora questo stramaledetto errore:
Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\Programmi\EasyPHP-5.3.5.0\www\Coupon Sconti\PHPMailer\class.phpmailer.php on line 1471
Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\Programmi\EasyPHP-5.3.5.0\www\Coupon Sconti\PHPMailer\class.phpmailer.php on line 1475
Ok errore aggiustato!
Ho aggiustato nel file class.phpmailer.php il codice nell'if e l'ho messo <5
codice:
if (PHP_VERSION < 5) {
$magic_quotes = get_magic_quotes_runtime();
set_magic_quotes_runtime(0);
}
$file_buffer = file_get_contents($path);
$file_buffer = $this->EncodeString($file_buffer, $encoding);
if (PHP_VERSION < 5) { set_magic_quotes_runtime($magic_quotes); }
return $file_buffer;
} catch (Exception $e) {
$this->SetError($e->getMessage());
return '';
Il problema è che ora il file PDF in allegato arriva sempre danneggiato... Ho fatto una ricerca su internet e non sono il solo... Ma non ho trovato nessuna soluzione... QUalcuno di voi sa qualcosa?