Ich weiß, wie SMTP verwenden, um mit PHPMailer:PHPMailer Standardkonfiguration 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
Und es funktioniert gut. Aber meine Frage ist:
Wie kann ich PHPMailer konfigurieren, um diese Einstellungen standardmäßig zu verwenden, so dass ich sie nicht jedes Mal angeben muss, die ich senden möchte?
Wenn es um Wordpress geht, kann die Check -> WordPress \ wp-includes \ class-phpmailer.php Datei – swapnesh