I have migrated my joomla to another server by copying all files, restoring data and restoring all linking. It shows on the page well but one of the modules, Contact Form, has been broken. Had a closer look, found the execution of the following line failed.
$mail = JFactory::getMailer();
Internal Server Error 500 was shown. Checked the manual it should be a built-in API from joomla I've no result log showing the exact problem. Anyone has similar experience, would be able to give any clue?