Can You tell me please how to send e-mails correctly using PHP and Postfix? I have default Virtualmin GPL install.
include_once(‘class.phpmailer.php’);
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Host = “localhost”; // sets the SMTP server
$mail->Port = 25; // set the SMTP port
$mail->Username = “ads”; // username
$mail->Password = “mypassword”; // password
I can send e-mail in this way but sent items are not saved in "sent" folder (I can not see it in https://localhost:20000 in "sent" folder).
Thank You for answers!