Originariamente inviato da daniele_dll
a te basta includerla

non c'è bisogno di metterla li
me la dai una mano?
non riesco a farla funzionare. Io ho preso le due classi, le ho caricate sul server e ho preso questo piccolo file d'esempio:
codice:
<?php
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // set mailer to use SMTP
$mail->Host = "mia@mail.it"; // specify main and backup server
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "my_user"; // SMTP username
$mail->Password = "my_pass"; // SMTP password
$mail->From = "mia@mail.it";
$mail->FromName = "Mailer";
$mail->AddAddress("mia@mail.it", "Manuel");
$mail->AddReplyTo("info@mail.it", "Informazioni");
$mail->WordWrap = 50; // set word wrap to 50 characters
$mail->IsHTML(true); // set email format to HTML
$mail->Subject = "Here is the subject";
$mail->Body = "This is the HTML message body in bold!";
$mail->AltBody = "This is the body in plain text for non-HTML mail clients";
if(!$mail->Send())
{
echo "Message could not be sent.
";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo "Message has been sent";
?>
ma non funziona assolutamente...le due classi io non le ho modificate.
Gli errori che mi restituisce sono questi:
codice:
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in .../path/class.smtp.php on line 105
Warning: fsockopen(): unable to connect to mia@mail.com:25 in ...path/class.smtp.php on line 105
Message could not be sent.
Mailer Error: Language string failed to load: connect_host
cosa devo fare?ma se io la classe mailer la volessi usare su tutti i miei siti cosa dovrei fare?in ogni sito dovrei settare nomi di user e password diversi a seconda del cliente?e mettere il suo account di posta?
scusa se ti faccio tutte queste domande, ma non so come venirne fuori!
Grazie mille! ciauzzzz