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

2 years ago

Zapotocny
Member | 16
+
0
-

Hello,

Why getFrom() on Message returns array?

Is there posibility to have multiple senders??

Thanks

2 years ago

CZechBoY
Member | 3380
+
+1
-

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