International example

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
jans
Forum Newbie
Posts: 2
Joined: Thu Mar 12, 2009 2:33 am

International example

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: International example

Post 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
jans
Forum Newbie
Posts: 2
Joined: Thu Mar 12, 2009 2:33 am

Re: International example

Post by jans »

Well that explains a lot :wink: Thanks for the quick response.

Grtz. Jans
Post Reply