require 'PHPMailerAutoload.php';
$mail = new PHPMailer;
$mail->setFrom('from@example.com', 'Your Name');
$mail->addAddress('myfriend@example.net', 'My Friend');
$mail->Subject = 'First PHPMailer Message';
$mail->Body = 'Hi! This is my first e-mail sent through PHPMailer.';
$mail->addAttachment('/my/path/to/file.pdf', 'file.pdf', $encoding, $type);
if(!$mail->send()) {
echo 'Message was not sent.';
echo 'Mailer error: ' . $mail->ErrorInfo;
} else {
echo 'Message has been sent.';
}
(new DateTimeImmutable('@1597252860'))->format('d.m.Y');
'suffix' => '.html',
init: docker-pull docker-build docker-up manager-init
docker-up:
docker-compose up -d
docker-pull:
docker-compose pull
docker-build:
docker-compose build
manager-init: manager-composer-install manager-assets-install manager-oauth-keys manager-wait-db manager-migrations manager-fixtures manager-ready
manager-migrations:
docker-compose run --rm manager-php-cli php bin/console doctrine:migrations:migrate --no-interaction
Если у вас нет промеждуточного слоя в контроллере, то так.