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