{"id":21531,"date":"2013-01-15T04:41:05","date_gmt":"2013-01-15T04:41:05","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/swift-mailer\/"},"modified":"2016-09-04T19:35:55","modified_gmt":"2016-09-04T19:35:55","slug":"swift-mailer","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/swift-mailer\/","author":11471062,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"5.4.3","stable_tag":"5.4.3","tested":"4.5.33","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Swift Mailer","header_author":"","header_description":"","assets_banners_color":"","last_updated":"2017-11-28 20:39:32","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/turnonsocial.com","header_author_uri":"","rating":4.5,"author_block_rating":0,"active_installs":1000,"downloads":36574,"num_ratings":0,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>Please update to the latest version. This release upgrades the Swift Mailer library to v5.4.3. No code changes are required!<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":"1","5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["5.4.1","5.4.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1456301","resolution":"1","location":"assets"}},"screenshots":{"1":"Sample code for application"}},"plugin_section":[],"plugin_tags":[450,6697],"plugin_category":[41],"plugin_contributors":[81310],"plugin_business_model":[],"class_list":["post-21531","plugin","type-plugin","status-closed","hentry","plugin_tags-mail","plugin_tags-swift-mailer","plugin_category-communication","plugin_contributors-turn-on-social","plugin_committers-turn-on-social"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/swift-mailer.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/swift-mailer\/assets\/screenshot-1.png?rev=1456301","caption":"Sample code for application"}],"raw_content":"<!--section=description-->\n<p>Loads the Swift Mailer library into WordPress and nothing more. See http:\/\/swiftmailer.org for more information.<\/p>\n\n<p>This plugin was created to provide a reliable way to update the core Swift Mailer library across multiple WordPress installs. The plugin loads only the core library so any mail functions will have to be written.<\/p>\n\n<p>Feedback welcomed! For feature requests or questions, create a thread on the support tab (http:\/\/wordpress.org\/support\/plugin\/swift-mailer) or email hello [at] turnonsocial [dot] com<\/p>\n\n<!--section=installation-->\n<p>Upload and activate. You can then use the Swift Mailer library within your code - swift_required.php is automatically included.<\/p>\n\n<p>Sample connect and send code (full documentation available at: http:\/\/swiftmailer.org\/docs\/sending.html )\n    \/\/ Create the Transport\n    $transport = Swift_SmtpTransport::newInstance('smtp.example.org', 25)\n      -&gt;setUsername('your username')\n      -&gt;setPassword('your password')\n      ;<\/p>\n\n<pre><code>\/\/ Create the Mailer using your created Transport\n$mailer = Swift_Mailer::newInstance($transport);\n\n\/\/ Create a message\n$message = Swift_Message::newInstance('Wonderful Subject')\n  -&gt;setFrom(array('john@doe.com' =&gt; 'John Doe'))\n  -&gt;setTo(array('receiver@domain.org', 'other@domain.org' =&gt; 'A name'))\n  -&gt;setBody('Here is the message itself')\n  ;\n\n\/\/ Send the message\n$result = $mailer-&gt;send($message);\n<\/code><\/pre>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><p>Upload and activate. You can then use the Swift Mailer library within your code - swift_required.php is automatically included.<\/p>\n\n<p>Sample connect and send code (full documentation available at: http:\/\/swiftmailer.org\/docs\/sending.html )\n    \/\/ Create the Transport\n    $transport = Swift_SmtpTransport::newInstance('smtp.example.org', 25)\n      -&gt;setUsername('your username')\n      -&gt;setPassword('your password')\n      ;<\/p>\n\n<pre><code>\/\/ Create the Mailer using your created Transport\n$mailer = Swift_Mailer::newInstance($transport);\n\n\/\/ Create a message\n$message = Swift_Message::newInstance('Wonderful Subject')\n  -&gt;setFrom(array('john@doe.com' =&gt; 'John Doe'))\n  -&gt;setTo(array('receiver@domain.org', 'other@domain.org' =&gt; 'A name'))\n  -&gt;setBody('Here is the message itself')\n  ;\n\n\/\/ Send the message\n$result = $mailer-&gt;send($message);\n<\/code><\/pre><\/dd>\n<dt>How do I use this plugin?<\/dt>\n<dd><p>Upon activation, the Swift Mailer library is available to you throughout your codebase. Simply create a transport, create a message and send.<\/p><\/dd>\n<dt>Do you have sample code for sending an email?<\/dt>\n<dd><p>See the fantastic Swift Mailer documentation http:\/\/swiftmailer.org\/docs\/sending.html<\/p><\/dd>\n<dt>Where do the library files come from?<\/dt>\n<dd><p>All lib files are pulled directly from the official Swift Mailer github repo at https:\/\/github.com\/swiftmailer\/swiftmailer<\/p><\/dd>\n<dt>I have a feature request or suggestion<\/dt>\n<dd><p>Great! Please create a message in the Support forum https:\/\/wordpress.org\/support\/plugin\/swift-mailer<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>5.4.3<\/h4>\n\n<ul>\n<li>Updated to Swift Mailer library v5.4.3<\/li>\n<li>Confirmed compatibility with WordPress v4.5.3<\/li>\n<\/ul>\n\n<h4>5.4.1<\/h4>\n\n<ul>\n<li>Updated to Swift Mailer library v5.4.1<\/li>\n<\/ul>\n\n<h4>5.4.0<\/h4>\n\n<ul>\n<li>Updated to PSR-1 compliant code<\/li>\n<li>Updated to Swift Mailer library v5.4.0<\/li>\n<\/ul>\n\n<h4>4.3.0<\/h4>\n\n<ul>\n<li>Swift Mailer library v4.3.0<\/li>\n<\/ul>","raw_excerpt":"The Swift Mailer library and nothing more. Created for developers.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/21531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=21531"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/turn-on-social"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=21531"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=21531"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=21531"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=21531"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=21531"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=21531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}