$email_template = $record['email_template']
$email_Details['2'] = Envato_CustomConfig_Helper_Data::toDateFormat($email_Details['2'],1)
$email_Details['2'] = strtotime(now());
Use a better IDE ;)
If you got error 500, first thing you ll have to do is check your logs.
Have a look on /var/log, and you ll probably have errors ( i guess system.log but look at the more recent one).
Then if you bring us informations, we will be able to help you, but you ll probably even fix it yourself! :)