Fix bug for subject

bug/bundler_fix
wchen-r7 2017-03-08 11:43:36 -06:00
parent ed22902fd4
commit 702d1c2b7e
3 changed files with 6 additions and 2 deletions

View File

@ -60,7 +60,8 @@ module Rex
content_type: ctype,
attachment_path: attachment_path,
from: from,
to: r
to: r,
subject: subject
)
smtp.send_message(mms_message.to_s, from, r)
end

View File

@ -49,6 +49,7 @@ module Rex
self.from = opts[:from]
self.to = opts[:to]
self.message = opts[:message]
self.subject = opts[:subject]
self.content_type = opts[:content_type]
if opts[:attachment_path]
self.attachment = load_file_to_base64(opts[:attachment_path])

View File

@ -12,6 +12,8 @@ RSpec.describe Rex::Proto::Mms::Client do
let(:file_content) { 'content' }
let(:subject) { 'subject' }
let(:ctype) { 'ctype' }
let(:carrier) { :verizon }
@ -52,7 +54,7 @@ RSpec.describe Rex::Proto::Mms::Client do
end
it 'sends an mms message' do
subject.send_mms_to_phones(phone_numbers, message, attachment, ctype)
subject.send_mms_to_phones(phone_numbers, subject, message, attachment, ctype)
expect(@sent_message).to include('MIME-Version: 1.0')
end
end