diff --git a/lib/private/mail/mailer.php b/lib/private/mail/mailer.php
index d083b992326b38d1341a4b85e27f9f116b6b2a02..bd93f3e3d5813c5dae2c70c08e2ed0dd2480916f 100644
--- a/lib/private/mail/mailer.php
+++ b/lib/private/mail/mailer.php
@@ -157,7 +157,10 @@ class Mailer implements IMailer {
 				$this->instance = $this->getSMTPInstance();
 				break;
 			case 'sendmail':
-				$this->instance = $this->getSendMailInstance();
+				// FIXME: Move into the return statement but requires proper testing
+				//       for SMTP and mail as well. Thus not really doable for a
+				//       minor release.
+				$this->instance = \Swift_Mailer::newInstance($this->getSendMailInstance());
 				break;
 			default:
 				$this->instance = $this->getMailInstance();
diff --git a/tests/lib/mail/mailer.php b/tests/lib/mail/mailer.php
index 21565f9ffb5f8a7ce3f5c8d353f19a532fe5eb0e..8023cda820e0c40e08915f364b55c7fe025b23d5 100644
--- a/tests/lib/mail/mailer.php
+++ b/tests/lib/mail/mailer.php
@@ -77,7 +77,7 @@ class MailerTest extends TestCase {
 			->method('getSystemValue')
 			->will($this->returnValue('sendmail'));
 
-		$this->assertInstanceOf('\Swift_SendmailTransport', self::invokePrivate($this->mailer, 'getInstance'));
+		$this->assertInstanceOf('\Swift_Mailer', self::invokePrivate($this->mailer, 'getInstance'));
 	}
 
 	public function testCreateMessage() {