如何更新 PHPMailer 并检查安装的版本
How to update PHPMailer and check installed version
如果安装了任何旧版本,我需要在少数服务器上更新 PHPMailer。
如何查看安装的版本
如何更新到PHPMailer 5.2.20(举例)
这取决于你是如何安装它的。如果您使用推荐的方法 composer, then a simple composer update
will get you the latest version. Your composer.lock
file will show you which version you currently have, or you can open the VERSION
file which will show you the version number you've got - or if you have a very old version that predates the VERSION
file, look in the source files instead - they will also say what version they are. If you've installed it manually, just download the latest version from Github 并替换您当前的版本。
如果安装了任何旧版本,我需要在少数服务器上更新 PHPMailer。 如何查看安装的版本 如何更新到PHPMailer 5.2.20(举例)
这取决于你是如何安装它的。如果您使用推荐的方法 composer, then a simple composer update
will get you the latest version. Your composer.lock
file will show you which version you currently have, or you can open the VERSION
file which will show you the version number you've got - or if you have a very old version that predates the VERSION
file, look in the source files instead - they will also say what version they are. If you've installed it manually, just download the latest version from Github 并替换您当前的版本。