it.comp.www.php
Il linguaggio di programmazione PHP
Indice messaggi | Invia un reply | Tutti i newsgroup | Cerca | Statistiche
|
 |
|
|
Inviato da: NoS 
Titolo: phpmailer XAMMP e Windows 10
Newsgroup: it.comp.www.php
Data: 03/08/2017
Ora: 11:31:39
Mostra headers
|
|
|
Scusate ma sto impazzendo.<br />
<br />
Ho da poco aggiornato il sistema operativo ed ora ho problemi nel <br />
testare l'invio mail da locale.<br />
<br />
Ho script che su win 8, con lo stesso ambiente locale, giravano <br />
perfettamente e su win 10 hanno problemi di connessione SMTP -> SMTP <br />
connect() failed.<br />
<br />
Ho cercato in rete ma non ho trovato soluzioni.<br />
<br />
Il codice che utilizzo per il test è il seguente<br />
<br />
//INVIO MAIL A: utente<br />
$mail = new PHPMailer(true);<br />
$mail->SMTPDebug = 1;<br />
$mail->IsSMTP();<br />
$mail->SMTPAuth = true;<br />
$mail->SMTPSecure = 'ssl'; // Use SSL<br />
$mail->Host = 'smtp.gmail.com'; // Server SMTP<br />
$mail->Port = 465; // Porta SMTP<br />
$mail->Username = 'indirizzo@gmail.com'; // SMTP account username<br />
$mail->Password = 'xxxxxxxxxxxxxxxx';<br />
$mail->setFrom('indirizzo@gmail.com', 'Mailer');<br />
$mail->AddAddress('mail@destinatario.com','utenteTest');<br />
$mail->isHTML(false);<br />
$mail->Subject = "TEST da LOCALE";<br />
$mail->Body = "Test Invio Mail";<br />
$mail->Send();<br />
echo "Message Sent OK\n";<br />
} catch (phpmailerException $e) {<br />
echo $e->errorMessage();<br />
} catch (Exception $e) {<br />
echo $e->getMessage();<br />
}<br />
<br />
L'unica differenza sembra essere il sys op.<br />
<br />
Qualche consiglio?<br />
Grazie in anticipo.<br />
<br />
---<br />
Questa email è stata esaminata alla ricerca di virus da AVG.<br />
http://www.avg.com<br />
|
|
|
 |
|
 |
Il thread:
 |
NoS |
03/08 11:31 |
phpmailer XAMMP e Windows 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
 |
|
Invia una risposta:
|
 |