{"id":129,"date":"2008-08-19T16:56:40","date_gmt":"2008-08-20T00:56:40","guid":{"rendered":"http:\/\/www.codebelay.com\/blog\/?p=129"},"modified":"2008-08-19T17:00:25","modified_gmt":"2008-08-20T01:00:25","slug":"installing-swift-in-symfony-11-the-missing-manual","status":"publish","type":"post","link":"https:\/\/www.codebelay.com\/blog\/2008\/08\/19\/installing-swift-in-symfony-11-the-missing-manual\/","title":{"rendered":"Installing Swift in symfony 1.1 &#8212; The missing manual"},"content":{"rendered":"<p>There&#8217;s one little gotcha with installing Swift in symfony 1.1. <a href=\"http:\/\/www.symfony-project.org\/cookbook\/1_1\/en\/email\">The directions<\/a> are correct but do not mention how to get around the error that outputs:<\/p>\n<p><center><br \/>\n                             <strong>Fatal error: Class &#8216;Swift_Connection_SMTP&#8217; not found<\/strong><br \/>\n<\/center><br \/>\n<\/p>\n<p>The solution is quite simple and involves creating an autoload.yml file in your project&#8217;s config directory. Here it is:<\/p>\n<pre>\r\nautoload:\r\n  swift_mailer_classes:\r\n    name: swift classes\r\n    ext:  .php\r\n    path: %SF_PLUGINS_DIR%\/swift\r\n    recursive: on\r\n\r\n<\/pre>\n<p>What I really like about Swift is how you can use your gmail account to send messages.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s one little gotcha with installing Swift in symfony 1.1. The directions are correct but do not mention how to get around the error that outputs: Fatal error: Class &#8216;Swift_Connection_SMTP&#8217; not found The solution is quite simple and involves creating an autoload.yml file in your project&#8217;s config directory. Here it is: autoload: swift_mailer_classes: name: swift [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,56,33],"tags":[],"class_list":["post-129","post","type-post","status-publish","format-standard","hentry","category-how-to","category-php","category-webapps"],"_links":{"self":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":0,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}