Browsing archives for 'Uncategorized'

Sending Mail from a Task, Symfony 1.4; Fatal error: Class ‘Swift_Message’ not found

Uncategorized 22 February 2010 | Comments

While trying to build and send a fairly complicated e-mail using a template from within a task. Unfortunately that resulted in a fairly nasty (and annoying) bug with Symfony’s autoloader:

Fatal error: Class ‘Swift_Message’ not found in apps/lib/email/DomainReportMessage.class.php on line 3

The format of the test files were extremely simple:

class DomainReportMessage extends Swift_Message {
/* Basic code to [...]