Gerardo, we have a ticket open with SM on this topic and are still going back and forth with them. Do us one favor though. In WHMCS, go to setup > general settings > other. Third to last option is display errors. Check that box to display php errors and then try to submit the order again. Let us know if you see something like this:
Fatal error: Call to undefined function smartermail_toArray() in /modules/servers/smartermail/smartermail.php on line 590
Which leads to an issue with this array, for us at least and specific for the last if statement:
// Converts JSON Data Structure from .NET Web Service to Array
function sm_toArray($obj){
$return=array();
if (is_array($obj)) {
$keys=array_keys($obj);
} elseif (is_object($obj)) {
$keys=array_keys(get_object_vars($obj));
} else {return $obj;}
foreach ($keys as $key) {
$value=$obj->$key;
if (is_array($obj)) {
$return[$key]=smartermail_toArray($obj[$key]);
} else {
$return[$key]=smartermail_toArray($obj->$key);
}
}
return $return;
}
?>