Page 1 of 1

International example

Posted: Thu Mar 12, 2009 2:37 am
by jans
I'm using Swift Mailer to send out some russian and hungarian mails.
In the package (4.0.1) I noticed the example international.php but when running the script I get an error : "Class 'Swift_MimeFactory' not found". Of course caused by the following line:
Swift_MimeFactory::setCharset('utf-8');
When I try to perform a grep on the library there is no file present with that classname.

Is it a case of an obsolete example or am I missing something?

Grtz. Jans

Re: International example

Posted: Thu Mar 12, 2009 3:18 am
by Chris Corbyn
Hah, forget that "examples" directory exists, it's horribly out of date (don't use any code you find there) and it shouldn't be there. Thanks for the heads-up, I'll delete that directory.

Please refer to the documentation online instead: http://swiftmailer.org/docs

Re: International example

Posted: Thu Mar 12, 2009 4:30 am
by jans
Well that explains a lot :wink: Thanks for the quick response.

Grtz. Jans