How to send mail with multiple images from node using Rules module?
&lt;?php
foreach($node-&gt;field_name['und'] as $file) {
  echo  drupal_realpath(file_load($file['fid'])-&gt;uri);
echo ("\n");}
?&gt;


This code worked for me!!!