PHP Classes

non-object

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  non-object  >  (Un) Subscribe thread alerts  
Subject:non-object
Summary:Fatal error: Call to a member function SetRecipient() on a non-o
Messages:2
Author:jbepure
Date:2013-02-16 03:49:23
Update:2013-02-16 06:16:43
 

  1. non-object   Reply   Report abuse  
Picture of jbepure jbepure - 2013-02-16 03:49:23
Everything works, but when i try to set multiple recipients with $email_message->SetRecipients() function i get this error

Fatal error: Call to a member function SetRecipient() on a non-object in class\smtp_message.php on line 607


how do pass an array of recipients to the class?

sorry for my poor english

  2. Re: non-object   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-02-16 06:16:43 - In reply to message 1 from jbepure
Do not call private functions directly. Read the documentation and only use the public functions documented there.

To set multiple recipients you set the To:, Cc: or Bcc: headers with a list of e-mail addresses separated by commas.