나는 PHPMailer와 SMTP를 사용하는 방법을 알고 :PHPMailer 기본 구성 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
을 그리고 그것을 잘 작동합니다. 하지만 내 질문은 :
메일을 보낼 때마다 지정할 필요가 없도록 PHPMailer가 기본적으로이 설정을 사용하도록 구성하려면 어떻게해야합니까?
만약 wordpress에 관한 것이라면 -> wordpress \ wp-includes \ class-phpmailer.php 파일 – swapnesh