ar_sendmail Stack Level Too Deep
ar_sendmail seems to have problems with stack depth when used in combination with various plugins. Having a rake task that depends on :environment or using script/runner for running ar_sendmail results in ‘splosions with Stack Level Too Deep Errors while deleting the email record after the email is sent. Solution to the problem:
Then setup a cronjob: