SendMail Installed but PHPMailer not sending mails and not giving error

Posted October 13, 2017 2.6k views
ApachePHPEmailUbuntu 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!


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

This question was answered by @edwinmunguia:

@HonorBoundDesign i solved the problem installing postfix. you should do it.

View the original comment