Nette\Mail\Message getFrom() returns array? why?

8 months ago

Zapotocny
Member | 11
+
0
-

Hello,

Why getFrom() on Message returns array?

Is there posibility to have multiple senders??

Thanks

8 months ago

CZechBoY
Member | 2754
+
+1
-

Because it returns array of one item with key and values containing name and email. Look at private function formatEmail.