thinkphp5.0 使用郵箱,window 上可以,但liunx 系統不能發送郵箱

1.使用郵箱發送信息,在window上可以使用composer 中的郵箱插件,但是在liunx上的一般出現 Class 'PHPMailer\PHPMailer\PHPMailer' not found   如果項目部署在window 系統你可以: use PHPMailer\PHPMailer\PHPMailer; 這就可以了。 2.如果在liunx上不能這樣寫了,請看目錄 不能使用use 命名
相關文章
相關標籤/搜索