No, it really is optimized for the contact form


On Wed, Jul 31, 2013 at 9:33 AM, apt142 <notifications@github.com> wrote:

> In ^/controllers/HomeController.php:
>
> >                  G::msg(Localizer::translate('home.contact.msg.subjectnewline'));
> >              } else {
> > -                mail(G::$G['siteEmail'], G::$G['contactFormSubject'].$post[$subject],
> > -                    'Login Info: '.$loginname.' - '.$login_id."\n"
> > -                    .'Specified Email Address: '.$post[$from]."\n"
> > -                    .'Subject: '.$post[$subject]."\n"
> > -                    .'Message: '."\n".$post[$message],
> > -                    'From: "'.G::$G['VIEW']['_siteName'].'" <'.G::$G['siteEmail'].">\n"
> > -                    ."Reply-To: ".$post[$from]."\nX-Mailer: PHP/" . phpversion()
> > -                    );
> > +                $loginname = G::$S->Login?G::$S->Login->loginname:'[not logged in]';
> > +                $login_id  = G::$S->Login?G::$S->Login->login_id:0;
> > +
> > +                $this->mailer($post, $from, $subject, $message,
>
> Technically it could be used in a general way.
>
> What I think really needs to happen is for us to have a mail object and to
> instantiate and call that instead.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/LoneFry/Graphite/pull/6/files#r5503048>
> .
>