How to install phpmailer on ubuntu 16.04 | 18.04 - TechBeginner

Welcome to TechBeginner.in, Tech Beginner provides technical blog for Online Linux Tutorials, Ubuntu Tutorials, Redhat Tutorials and CentOS 7, Configuration of server like Web Server, Application server, Database server, Window server, networking, html, css, java script, php, wordpress, opencart, magento, joomla and etc.

How to install phpmailer on ubuntu 16.04 | 18.04

Share This




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


No comments:

Post a Comment