We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b53f218 commit 3b6d656Copy full SHA for 3b6d656
1 file changed
Sources/PerfectSMTP/PerfectSMTP.swift
@@ -391,7 +391,7 @@ public class EMail {
391
392
// TO FIX: ssl requires a certificate, how to get one???
393
if client.url.lowercased().hasPrefix("smtps")
394
- || (client.url.lowercased().hasPrefix("smtp") && client.requiresTLSUpgrade) {
+ || client.requiresTLSUpgrade {
395
let _ = curl.setOption(CURLOPT_USE_SSL, int: Int(CURLUSESSL_ALL.rawValue))
396
397
// otherwise just non-secured smtp protocol
0 commit comments