If you had some troubles with sending mail function in Joomla website, then you can follow this simple setting to solve that issue:
1) Make a new contact in your Admin part of Joomla and set an email for that person (e.g. firstname.lastname@example.org ).
2) Go to Admin > Site > Global configuration > Server >Mail Setting:
Change to this setting:
Mailer: PHP mail function
Mail from: email@example.com
From Name: abcd
Sendmail Path: /usr/sbin/sendmail
SMTP Authentication: No
And then, everything will be OK!