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