PHP : Fatal error: Call to undefined function imap_open()

it's cause of the IMAP extension is not activated in your php.ini


you have to open the file  
"\xampp\php\php.ini"
to active this exstension at the line
";extension=php_imap.dll"
. by removing the beginning semicolon So , it should be:
extension=php_imap.dll