Thanks for your help Piotr. I have contacted digitalocean about setting the proper mail configurations already, although I am able to send mail through command.

Last thing, how did you see that there was a 500 Internal Error? Would like to know for debugging purposes. Thanks!