-
-
Notifications
You must be signed in to change notification settings - Fork 858
Add STARTTLS support #52
Comments
FWIW, I was able to get STARTTLS working in Swift Mailer v4.0.6 with the following changes: Index: lib/thirdparty/Swift_Mailer/lib/classes/Swift/Transport/EsmtpTransport.php--- lib/thirdparty/Swift_Mailer/lib/classes/Swift/Transport/EsmtpTransport.php(revision 775)
/**
@@ -141,7 +150,7 @@
/** }
$this->_capabilities = $this->_getCapabilities($response); Index: lib/thirdparty/Swift_Mailer/lib/classes/Swift/Transport/StreamBuffer.php--- lib/thirdparty/Swift_Mailer/lib/classes/Swift/Transport/StreamBuffer.php(revision 775) /**
Original creation date: 2010-06-04T17:11:28Z |
I guess I should have previewed and read the formatting tips before submitting my last comment. FWIW, I was able to get STARTTLS working in Swift Mailer v4.0.6 with the following changes: @@@ Index: lib/thirdparty/Swift_Mailer/lib/classes/Swift/Transport/EsmtpTransport.php--- lib/thirdparty/Swift_Mailer/lib/classes/Swift/Transport/EsmtpTransport.php
/**
@@ -141,7 +150,7 @@
/** }
$this->_capabilities = $this->_getCapabilities($response); Index: lib/thirdparty/Swift_Mailer/lib/classes/Swift/Transport/StreamBuffer.php--- lib/thirdparty/Swift_Mailer/lib/classes/Swift/Transport/StreamBuffer.php /**
Original creation date: 2010-06-04T17:21:08Z |
These changes fixed the issue with sending email through Google Mail servers. Highly recommend adding the changes to the distribution. Original creation date: 2010-08-08T14:16:50Z |
I can confirm that the above patch adds STARTTLS support to SwiftMailer and it works perfectly fine with my own mail server here. Original creation date: 2010-10-27T18:49:33Z |
I'm trying to get starttls working with Swiftmailer v4.0.6 as you have, but it is not working for me. I take it you can run the script above? I'm currently making the alterations by hand so can someone give me a clue as to the type of script it is so I can run it? Thanks! Original creation date: 2010-12-26T02:53:11Z |
It's a diff. You can't "run" a diff, since all it does is describe changes (lines starting with "+" are additions, lines starting with "-" are deletions). patch EsmtpTransport.php < EsmtpTransport.php.diff (No idea how to do this on Windows, but this is the Linux/Mac/UNIX way to do it) Original creation date: 2010-12-26T03:58:51Z |
Thanks, the patch worked fine for me. I've added a zip containing a patched version of swift mailer v4.0.6 for anyone not on Linux or unable to apply the patch... Swift Mailer with STARTTLS Original creation date: 2010-12-26T21:49:39Z |
Added the patch in merge queue. Original creation date: 2011-03-12T14:43:17Z |
Depends on #32.
Use the ESMTP extension API in Swift Mailer to add support for the use of STARTTLS.
This should be easy to achieve by performing a
stream_enable_crypto()
call on the SMTP socket immediately after sending the STARTTLS command.Full RFC:
http://www.ietf.org/rfc/rfc3207.txt
Original creation date: 2009-03-09T14:29:05Z
Original reporter: xdecock
Original ticket: http://swiftmailer.lighthouseapp.com/projects/21527/tickets/67
The text was updated successfully, but these errors were encountered: