File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -142,13 +142,18 @@ def send_message(data)
142
142
raw_send_recv ( "RCPT TO: <#{ datastore [ 'MAILTO' ] } >\r \n " , nsock )
143
143
144
144
# If the user supplied a Date field, use that, else use the current
145
- # DateTime in the propper RFC2822 format.
145
+ # DateTime in the proper RFC2822 format.
146
146
if datastore [ 'DATE' ] . present?
147
147
raw_send_recv ( "Date: #{ datastore [ 'DATE' ] } \r \n " , nsock )
148
148
else
149
149
raw_send_recv ( "Date: #{ DateTime . now . rfc2822 } \r \n " , nsock )
150
150
end
151
151
152
+ # If the user supplied a Subject field, use that
153
+ if datastore [ 'SUBJECT' ] . present?
154
+ raw_send_recv ( "Subject: #{ datastore [ 'SUBJECT' ] } \r \n " , nsock )
155
+ end
156
+
152
157
resp = raw_send_recv ( "DATA\r \n " , nsock )
153
158
154
159
# Avoid sending tons of data and killing the connection if the server
You can’t perform that action at this time.
0 commit comments