method of phpmailer to be used.
This is now possible just by specifying "qmail" in the smtphosts field.
$mail->CharSet = get_string("thischarset");
}
- if ($CFG->smtphosts) {
+ if ($CFG->smtphosts == "qmail") {
+ $mail->IsQmail(); // use Qmail system
+
+ } else if (empty($CFG->smtphosts)) {
+ $mail->IsMail(); // use PHP mail() = sendmail
+
+ } else {
$mail->IsSMTP(); // use SMTP directly
if ($CFG->debug > 7) {
echo "<pre>\n";
$mail->Username = $CFG->smtpuser;
$mail->Password = $CFG->smtppass;
}
- } else {
- $mail->IsMail(); // use PHP mail() = sendmail
}
$adminuser = get_admin();