so come usare SMTP con PHPMailer:PHPMailer configurazione predefinita SMTP
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Host = "mail.yourdomain.com"; // sets the SMTP server
$mail->Username = "[email protected]"; // SMTP account username
$mail->Password = "yourpassword"; // SMTP account password
e funziona benissimo. Ma la mia domanda è:
Come posso configurare PHPMailer per utilizzare queste impostazioni di default, in modo da non doverle specificare ogni volta che voglio inviare la posta?
Se si tratta di wordpress il check -> wordpress \ wp-include il file \ class-phpmailer.php – swapnesh