Skip to content

Commit

Permalink
Adding debug header.
Browse files Browse the repository at this point in the history
  • Loading branch information
RockfordWei committed Aug 25, 2017
1 parent 32e2f23 commit 580a53c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/.build
/Packages
/*.xcodeproj
.pins
/*.pins
7 changes: 4 additions & 3 deletions Sources/SMTP.swift
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public class EMail {

/// email content body
public var content: String = ""

// text version, to be added with a html version.
public var text: String = ""

Expand Down Expand Up @@ -375,8 +375,9 @@ public class EMail {

if self.debug {
let _ = curl.setOption(CURLOPT_VERBOSE, int: 1)
let _ = curl.setOption(CURLOPT_HEADER, int: 1)
}//end if

// TO FIX: ssl requires a certificate, how to get one???
if client.url.lowercased().hasPrefix("smtps") {
let _ = curl.setOption(CURLOPT_USE_SSL, int: Int(CURLUSESSL_ALL.rawValue))
Expand Down Expand Up @@ -439,7 +440,7 @@ public class EMail {

// asynchronized calling
Threading.dispatch {
let r = curl.performFully()
let r = curl.performFully()
//release pipeline
//callback
var r1 = r.1
Expand Down

0 comments on commit 580a53c

Please sign in to comment.