[solved]How to set configure to send mail with php mail(), not by SMTP? tried but failed

as the title,

I set “define(‘PHPMAILERHOST’, ‘’);” blank,

and test to send mail

but failed.

Error sending email to @.com Could not instantiate mail function.

would someone help me to set the right configure, thanks a lot

PS, Ubuntu 14, installed sendmail and test mail() by PHP is working

-------------------2016.12.25-------------

merry Christmas,

today I learned from
https://mantis.phplist.org/print_bug_page.php?bug_id=6331

Except that the replacement of:
var $this->mail()
to
var this->$Mailer = "sendmail";

was made in:
lists\admin\class.phplistmailer.php

I changed admin/class.phplismailer.php

line l27

this->mail()

to

$this->Mailer = ‘sendmail’;

then it works!!