SendMail Installed but PHPMailer not sending mails and not giving error

October 13, 2017 1.7k views
Apache PHP Email Ubuntu 16.04

i've already installed sendmail and i edited my /etc/hosts file and then restarted apache
the content of the hosts file looks like this: localhost localhost.localdomain myhostname localhost

however, when i try to send a simple email using PHPMailer it doesn't send the mail.

have i misconfigurared something? any help please!

Be the first one to answer this question.