The phpmail function fails to send emails & nbsp; $ from & nbsp; [email & #160; protected]; & nbsp; $ to & nbsp; [email & #160; protected]; & nbsp; $ subject & nbsp; the s php mail function fails to send emails.
$ From = "[email protected]";
$ To = "[email protected]";
$ Subject = "subject ";
$ Mailtext = "blablabla ";
Mail ($ to, $ subject, $ mailtext, "From: $ from ");
The mailbox does not respond at all. could you please advise me if there is any configuration problem? I always feel that there should be a password parameter for sending the mailbox, but I do not need to check it, I don't know why I'm so unsuccessful. forget to give me some tips.
------ Solution --------------------
The mail function can only use an email sending server that does not require user authentication.
------ Solution --------------------
Use phpmailer. Very simple.
------ Solution --------------------
No, the SMTP protocol is not enabled.