public function getLastMessage()
    {
        $filename = $this->getTempFilename();

        if (file_exists($filename)) {
            $result = unserialize(file_get_contents($filename));
        } else {
            throw new Swift_IoException('No last message found in "' . $filename . '" - did you call send()?');
        }

        return $result;
    }
public function getLastMessage()
    {
        $filename = $this->getTempFilename();

        if (file_exists($filename)) {
            $result = unserialize(file_get_contents($filename));
        } else {
            throw new Swift_IoException('No last message found in "' . $filename . '" - did you call send()?');
        }

        return $result;
    }
public function getLastMessage ( ) { $ filename = $ this -> getTempFilename ( ) ; if ( file_exists ( $ filename ) ) { $ result = unserialize ( file_get_contents ( $ filename ) ) ; } else { throw new Swift_IoException ( 'No last message found in "' . $ filename . '" - did you call send()?' ) ; } return $ result ; }
Returns the last message sent

@throws Swift_IoException
@return Swift_Mime_Message
Returns the last message sent