fix small bug with html only emails
This commit is contained in:
parent
30a13674e8
commit
58ca760a64
1 changed files with 2 additions and 3 deletions
|
|
@ -22,7 +22,6 @@ module Messagebus
|
||||||
end
|
end
|
||||||
|
|
||||||
def message_parse(string)
|
def message_parse(string)
|
||||||
puts string
|
|
||||||
string.split('<')[0]
|
string.split('<')[0]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -39,13 +38,13 @@ module Messagebus
|
||||||
m[:htmlBody] = message.html_part.body.to_s if message.html_part
|
m[:htmlBody] = message.html_part.body.to_s if message.html_part
|
||||||
else
|
else
|
||||||
m[:plaintextBody] = message.body.to_s
|
m[:plaintextBody] = message.body.to_s
|
||||||
|
m[:htmlBody] = message.body.to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
@client.add_message(m)
|
@client.add_message(m)
|
||||||
end
|
end
|
||||||
|
status = @client.flush
|
||||||
if status[:failureCount] && status[:failureCount] > 0
|
if status[:failureCount] && status[:failureCount] > 0
|
||||||
puts "DOHHHHHHHHHHH"
|
|
||||||
raise "Messagebus failure. failureCount=#{failureCount}, message=#{message.inspect}"
|
raise "Messagebus failure. failureCount=#{failureCount}, message=#{message.inspect}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue