Pagekit\Mail\Message::attachFile PHP 메소드

attachFile() 공개 메소드

Attaches a file to the message.
public attachFile ( string $file, string $name = null, string $mime = null ) : self
$file string
$name string
$mime string
리턴 self
    public function attachFile($file, $name = null, $mime = null)
    {
        return $this->prepareAttachment(Swift_Attachment::fromPath($file), $name, $mime);
    }