src/Oro/Bundle/EmailBundle/Form/Handler/EmailApiHandler.php 1 location
|
@@ 243-245 (lines=3) @@
|
| 240 |
|
if (!$model->getFrom()) { |
| 241 |
|
throw new \InvalidArgumentException('Sender should not be empty'); |
| 242 |
|
} |
| 243 |
|
if (!$model->getTo() && !$model->getCc() && !$model->getBcc()) { |
| 244 |
|
throw new \InvalidArgumentException('Recipients should not be empty'); |
| 245 |
|
} |
| 246 |
|
} |
| 247 |
|
|
| 248 |
|
/** |
src/Oro/Bundle/EmailBundle/Mailer/Processor.php 1 location
|
@@ 422-424 (lines=3) @@
|
| 419 |
|
if (!$model->getFrom()) { |
| 420 |
|
throw new \InvalidArgumentException('Sender can not be empty'); |
| 421 |
|
} |
| 422 |
|
if (!$model->getTo() && !$model->getCc() && !$model->getBcc()) { |
| 423 |
|
throw new \InvalidArgumentException('Recipient can not be empty'); |
| 424 |
|
} |
| 425 |
|
} |
| 426 |
|
|
| 427 |
|
/** |