PHPMailer is a code library to send messages securely and effectively through PHP code from a web server. Sending messages straightforwardly by PHP code requires an elevated level nature to SMTP standard convention and related issues and vulnerabilities about Email infusion for spamming.
In this post, We will PHPMailer on ubutnu 16.04 and 18.04
Step 1: Update System
You need to update the current ubuntu repository by using the command.
sudo apt-get update
Step 2: Install PHPMailer
You need to use the given command to install PHPMailer.
sudo apt-get install libphp-phpmailer -y
Step 3: Verify PHPMailer
Verify libphp-phpmailer installation on ubuntu machine.
dpkg --get-selections | grep phpmailer
Step 4: To Uninstall
To uninstall the installed packages of PHPMailer, Use the following command.
sudo apt-get remove libphp-phpmailer -y
Conclusion
We have successfully installed phpmailer on ubuntu 22.04 LTS, Kindly report in case you are facing defeculties with follwing details.
- OS name
- OS version
- Package name
- Logs – Error / Warning / failed
Get in touch with our new devops tools based website- https://www.devopstricks.in/