Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hi,
I am new to Digital Ocean and Linux admin in general. Trying to migrate my site from shared hosting to Digital Ocean.
Just created an “One Click LAMP on 14.04” droplet for my old Codeigniter 2 site. Have transferred the files and pointed the domain to given IP. Seems everything is fine for now.
I have a page with contact from, which uses a PHP mail() function.
Recently I found out that its not working on DO server (was working fine on my shared hosting).
When I submit the form, instead of mail sent feedback message, my form reloads.
Tried to check that in developer console and found out that I am not getting any AJAX response
Exact Message:
TypeError: response is null
After some googling, I figured out that PHP mail() is compiled to use sendmail by default and was not installed on my droplet instance.
Followed the instruections from here: https://www.digitalocean.com/community/questions/php-mail-function-enable
Did this:
$ sudo apt-get install sendmail mailutils sendmail-bin
$ sudo nano /etc/hosts
-> 127.0.1.1 <my.domain> <my.domain> {just replaced the droplet name with my domain}
-> 127.0.0.1 localhost localhost.localdomain <my.domain>
$ sudo sendmailconfig
-> answered 'y" to everything
I have php script to test this with sender, receiver, message. Whenever I try sending test mail, I get message
/home/<uername>/dead.letter... saved message in /home/<username>/dead.letter
Can’t figure out what’s going on.
Need some clues and suggestions.
Thanks!
3630316526124b4190e628cd69be1e
6a2e133a62fe4859920f9233303d8c
c6fa584e45c14c21ae44129dfe5743
Maria Smith
819167b5336c456e9ad38395fec1c5
bitandmap
e13d124f55014cf1a5bfd586997890
eea0a4f7eca348d58775fb7c7015fc
1636b10487fe4ab5b1e3bc483fd84f
e3002a14a547406799fe27a6abf211
5f21ced7a9dd4fe7af83c7412c563f
David Sen