xsuchy09/nette-eml-response

v1.0.1 2020-10-05 07:27 UTC

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);
	}
}