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
I cannot find any instruction or document or example to override the helper mail class sendmail function
Pls help
Anyone know that saving email to send in database and sensing behind using cron jobs improve response time? So will you consider implementing that?
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:
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.
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.