You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When iterating through messages, I want to get the address the email was sent to. However, the object $message->getTo() gives an array to string conversion error.
When iterating through messages, I want to get the address the email was sent to. However, the object
$message->getTo()
gives an array to string conversion error.See code below.
`function get_emails(){
Error: Notice: Array to string conversion in /path/to/file/ on line 58
Any fix for this?
The text was updated successfully, but these errors were encountered: