$ret['recipents'] = $this->rcpts;
}
- if (empty($ret['headers']['To']) || !strlen(trim($ret['headers']['To']))) {
+ if (!empty($ret['recipents']) && (empty($ret['headers']['To']) || !strlen(trim($ret['headers']['To'])))) {
$ret['headers']['To'] = implode(',', $ret['recipents']);
}