Hi,
ich baue ein Kommando, das eine E-mail schicken soll. Es erzeugt ein Objekt Contao\Email und schickt es mit sendTo() auf die Reise. Das landet beim ContaoMailer und geht an den Symfony\Mailer, landet aber nie beim Symfony\Mailer\Transport\Smtp und dass obwohl .env.local richtig gesetzt ist. Das zeigt zumindest das Kommando console mailer:test. Da kommt eine Mail an.
Hat jemand eine Idee dazu?
PHP-Code:
$email = new Email();
$email->subject = 'huhu';
$email->text = 'Das ist ein Text';
$email->sendTo('xx@xx.com');