Overriding helper sendmail to queue and then send mail via cron

Permalink
Overriding helper sendmail to queue and then send mail via cron.

I cannot find any instruction or document or example to override the helper mail class sendmail function

Pls help

 
tchk74 replied on at Permalink Reply
Anyone know that saving email to send in database and sensing behind using cron jobs improve response time? So will you consider implementing that?
jordanlev replied on at Permalink Reply
jordanlev
I don't see how sending emails with a cron job would increase response time (wouldn't it lower it, because it's going out at a later time?)

Anyway, you would have to code this solution. You would override the mail helper by creating a new file: /helpers/mail.php, and define the class in that file as such:
<?php
class SiteMailHelper extends MailHelper {
}

Then put in whatever functions you want to override (or create new).

Then you need to create a job to process the mails -- there's documentation about how to create jobs I believe.