File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -85,22 +85,22 @@ export class SMTPClient {
85
85
this . #connection. writeCmd (
86
86
`Content-Type: ${ attachment . contentType } ; name=${ attachment . filename } ` ,
87
87
) ;
88
-
88
+
89
89
if ( attachment . contentID ) {
90
90
this . #connection. writeCmd (
91
91
`Content-ID: <${ attachment . contentID } >` ,
92
92
) ;
93
93
}
94
-
94
+
95
95
this . #connection. writeCmd (
96
96
`Content-Disposition: ${ attachment . contentDisposition } ; filename=${ attachment . filename } ` ,
97
97
) ;
98
-
98
+
99
99
if ( attachment . encoding === "base64" ) {
100
100
this . #connection. writeCmd (
101
101
"Content-Transfer-Encoding: base64\r\n" ,
102
102
) ;
103
-
103
+
104
104
for (
105
105
let line = 0 ;
106
106
line < Math . ceil ( attachment . content . length / 75 ) ;
@@ -110,16 +110,16 @@ export class SMTPClient {
110
110
line * 75 ,
111
111
( line + 1 ) * 75 ,
112
112
) ;
113
-
113
+
114
114
this . #connection. writeCmd ( lineOfBase64 ) ;
115
115
}
116
-
116
+
117
117
this . #connection. writeCmd ( "\r\n" ) ;
118
118
} else if ( attachment . encoding === "text" ) {
119
119
this . #connection. writeCmd (
120
120
"Content-Transfer-Encoding: quoted-printable\r\n" ,
121
121
) ;
122
-
122
+
123
123
this . #connection. writeCmd ( attachment . content + "\r\n" ) ;
124
124
}
125
125
}
You can’t perform that action at this time.
0 commit comments