From 99870d94c4fa24ebfb0b249aa2325a3011969f22 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Thu, 4 Aug 2016 18:14:15 +0200 Subject: [PATCH] Switch to GmailTransport for sending mails. --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index ba9543b..acb450f 100644 --- a/index.php +++ b/index.php @@ -7,7 +7,7 @@ use \Frs\SessionManager; use \Frs\Output\HtmlOutput; use \Frs\Output\MailOutput; use \Frs\Output\Transport\StdoutTransport; -use \Frs\Output\Transport\MailTransport; +use \Frs\Output\Transport\GmailTransport; $stdout = new StdoutTransport(); $ho = new HtmlOutput($stdout, dirname(__FILE__) . '/templates'); @@ -71,7 +71,7 @@ if (!$tpl_done && $sm->hasSessionToken()) { switch ($action) { case 'send': echo 'This would send the mail...'; - $mt = new MailTransport(); + $mt = new GmailTransport($sm); $mo = new MailOutput($mt, dirname(__FILE__) . '/templates'); $form_type = $_REQUEST['form_type']; $mo->setTemplate('mail_' . $form_type);