Question
PHP mail() function enable
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.
×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.
×@collinpatrickhenderson Thanks for your post, I followed it sort of..
Note: On Digital Ocean Ubuntu 14.04 LAMP image.
1) ran $ sendmail myemail@yahoo.com
This told me sendmail could be found in the following packages:
I decided to install the sendmail-bin. I believe this is all that is needed. For sending mail from form etc.
2) $ sudo apt-get install sendmail-bin
Then checked hosts file.
3) $ nano /etc/hosts
Looked like:
127.0.1.1 myhostname myhostname
127.0.0.1 localhost
4) control+x to quit nano
Then ran:
5) $ sudo sendmailconfig
Accepted Y to all choices. I think there was three or four..Once finished..
Tested again with:
6) $ sendmail myemail@yahoo.com
Test message
It worked nicely. Only thing now is I wonder how much more should be configured for security and performance, I did see a lot in that configuration.. Someone should do a tutorial on sendmail configuration???
hi please help me. in my droplet am installed easy engine and am installed postfix , sendmail and also am added sendmail path. but mail() function is not send the mail
The sendmail package doesn’t work with ubuntu 16.04.
It has some malware issue.
Even though i tried to remove it completely from ubuntu. it still uses the CPU (DISK I/O) almost upto 99%.
Works great. but have one issue. mail is received in spam folder, and send from address is www-data@dropletName
how do i solve that ?
hi am tried but mail not sending plz help me. am using nginx easyengine wordpress.. can i share my server details with you plz help me.