Commit 3dad686 1 parent dedeac2 commit 3dad686 Copy full SHA for 3dad686
File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -113,15 +113,14 @@ extension Email {
113
113
out. writeString ( " \( self . body) \r \n \r \n " )
114
114
out. writeString ( " -- \( boundary) \r \n " )
115
115
}
116
- //Close the last email boundary using --
116
+
117
117
for (index, attachment) in self . attachments. enumerated ( ) {
118
118
out. writeString ( " Content-type: \( attachment. contentType) \r \n " )
119
119
out. writeString ( " Content-Transfer-Encoding: base64 \r \n " )
120
120
out. writeString ( " Content-Disposition: attachment; filename= \" \( attachment. name) \" \r \n \r \n " )
121
121
out. writeString ( " \( attachment. data. base64EncodedString ( ) ) \r \n " )
122
122
123
- if index == self . attachments. count - 1
124
- {
123
+ if index == self . attachments. count - 1 {
125
124
out. writeString ( " -- \( boundary) -- \r \n " )
126
125
} else {
127
126
out. writeString ( " -- \( boundary) \r \n " )
You can’t perform that action at this time.
0 commit comments