english/libraries/joomla/mail/mail.php
/**
	 * Add file attachments to the email
	 *
	 * @param   mixed  $attachment  Either a string or array of strings [filenames]
	 *
	 * @return  JMail  Returns this object for chaining.
	 *
	 * @since   11.1
	 */
Add file attachments to the email
@param   mixed  $attachment  Either a string or array of strings [filenames]

@return  JMail  Returns this object for chaining.


Add file attachments to the email @param mixed $attachment Either a string or array of strings [ filenames ] @return JMail Returns this object for chaining .
public function addAttachment($attachment)
	{
		if (isset($attachment)) {
			if (is_array($attachment)) {
				foreach ($attachment as $file)
				{
					parent::AddAttachment($file);
				}
			}
			else {
				parent::AddAttachment($attachment);
			}
		}
		return $this;
	}
public function addAttachment ( $ attachment ) { if ( isset ( $ attachment ) ) { if ( is_array ( $ attachment ) ) { foreach ( $ attachment as $ file ) { parent :: AddAttachment ( $ file ) ; } } else { parent :: AddAttachment ( $ attachment ) ; } } return $ this ; }
Add file attachments to the email
 @param   mixed  $attachment  Either a string or array of strings [filenames]
Add file attachments to the email @param mixed $attachment Either a string or array of strings [ filenames ]
// If the file attachments is an array, add each file... otherwise just add the one