MIMEMailPHP4 FAQ : Invalid argument supplied for foreach
Invalid argument supplied for foreach in line 364
This is a PHP warning from MIMEMailPHP4 V2.1 when you try to attach a binary file and the given file is not found or not readable. Use the getLastErrorCode funtion after addBinaryFileAsAttachment() to catch and handle that error in your code before sending the mail.
You can also gracefully ignore that warning.
The project pages are here.










June 2nd, 2007 at 12:10 pm
This problem is solved with the service release 2.1.1