SendMail Installed but PHPMailer not sending mails and not giving error

October 13, 2017 171 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:

127.0.0.1 localhost localhost.localdomain myhostname
127.0.0.1 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.