Question

SendMail Installed but PHPMailer not sending mails and not giving error

Posted October 13, 2017 2.2k 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:

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!

2 comments

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.

×
1 answer

This question was answered by @edwinmunguia:

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

View the original comment

Submit an Answer