xsuchy09 / nette-eml-response
Nette EML Response
v1.0.1
2020-10-05 07:27 UTC
Requires
- php: >= 7.1
- nette/application: ^3.0
- nette/http: ^3.0
This package is auto-updated.
Last update: 2024-12-05 16:42:39 UTC
README
EmlResponse for Nette.
Install
composer require xsuchy09/nette-eml-response
Usage
class SomePresenter extends BasePresenter { public function actionDefault() { $emlData = file_get_contents('mail.eml'); $response = new \xsuchy09\Application\Responses\EmlResponse($emlData, 'download.eml'); $this->sendResponse($response); } }