@@ -35,11 +35,11 @@ function sendBuffer() {
35
35
headers : { "Hostname" : os . hostname ( ) }
36
36
} ;
37
37
38
- if ( true === config . attachement . enable ) {
39
- msg [ config . html ? "html" : "text" ] = config . attachement . message ;
38
+ if ( true === config . attachment . enable ) {
39
+ msg [ config . html ? "html" : "text" ] = config . attachment . message ;
40
40
msg . attachments = [
41
41
{
42
- filename : config . attachement . filename ,
42
+ filename : config . attachment . filename ,
43
43
contentType : 'text/x-log' ,
44
44
content : body
45
45
}
@@ -98,13 +98,13 @@ function scheduleSend() {
98
98
function smtpAppender ( _config , _layout ) {
99
99
config = _config ;
100
100
101
- if ( ! config . attachement ) {
102
- config . attachement = { } ;
101
+ if ( ! config . attachment ) {
102
+ config . attachment = { } ;
103
103
}
104
104
105
- config . attachement . enable = config . attachement && config . attachement . enable ;
106
- config . attachement . message = config . attachement && config . attachement . message || "See logs as attachement " ;
107
- config . attachement . filename = config . attachement && config . attachement . filename || "default.log" ;
105
+ config . attachment . enable = config . attachment && config . attachment . enable ;
106
+ config . attachment . message = config . attachment && config . attachment . message || "See logs as attachment " ;
107
+ config . attachment . filename = config . attachment && config . attachment . filename || "default.log" ;
108
108
layout = _layout || layouts . basicLayout ;
109
109
subjectLayout = layouts . messagePassThroughLayout ;
110
110
sendInterval = config . sendInterval * 1000 || 0 ;
0 commit comments