Beispiel #1
0
 /**
  * Attach a file to your message.
  *
  * @param File $file     File instance
  * @param string    $fileName Optional name that will be set for the attachment.
  * @param string    $type     Optional MIME type of the attachment
  *
  * @return $this
  */
 public function addAttachment(File $file, $fileName = '', $type = 'plain/text')
 {
     $this->message->addAttachment($file->getAbsolutePath(), $fileName);
     return $this;
 }