I have been using a third-party (phpmailer) to send emails. Today, I suddenly wanted to try the mail function provided by php, but I found that no matter how configured, I could not send an email. What is the reason? I have been using a third-party (phpmailer) to send emails. Today, I suddenly wanted to try the mail function provided by php, but I found that no matter how configured, I could not send an email.
What is the reason?
Reply content:
I have been using a third-party (phpmailer) to send emails. Today, I suddenly wanted to try the mail function provided by php, but I found that no matter how configured, I could not send an email.
What is the reason?
The mail function depends on the MTA of the local machine. It is enough to install an MTA such as sendmail/postfix.
Has lz tried sendmail? I tested it in win8.1. It seems that it is not good.