Add this blog to Del.icio.us, Digg or Furl | Create Watchlist for this blog

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.

Social Bookmarking:
Add to social bookmarking sites.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • MisterWong
  • Furl
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati

And I've started a Drupal relaunch of my EDV Beratung now.

One Response to “MIMEMailPHP4 FAQ : Invalid argument supplied for foreach”

  1. Rainer Says:

    This problem is solved with the service release 2.1.1

Leave a Reply

I appreciate all comments that add substantial content to my articles. I do not like "link-building" comments and I do not like "congratulation" comments. Every such like data posted here will go to akismet hell.