مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
Message body parts should be a sub body (#376)
هذا الالتزام موجود في:
ملتزم من قبل
Charlie Smurthwaite
الأصل
9b1ed1e7e1
التزام
d0db1345a2
@@ -160,17 +160,15 @@ class OutgoingMessagePrototype
|
|||||||
mail.sender = @sender
|
mail.sender = @sender
|
||||||
mail.subject = @subject
|
mail.subject = @subject
|
||||||
mail.reply_to = @reply_to
|
mail.reply_to = @reply_to
|
||||||
if @html_body.blank? && attachments.empty?
|
mail.part :content_type => "multipart/alternative" do |p|
|
||||||
mail.body = @plain_body
|
|
||||||
else
|
|
||||||
if !@plain_body.blank?
|
if !@plain_body.blank?
|
||||||
mail.text_part = Mail::Part.new
|
p.text_part = Mail::Part.new
|
||||||
mail.text_part.body = @plain_body
|
p.text_part.body = @plain_body
|
||||||
end
|
end
|
||||||
if !@html_body.blank?
|
if !@html_body.blank?
|
||||||
mail.html_part = Mail::Part.new
|
p.html_part = Mail::Part.new
|
||||||
mail.html_part.content_type = "text/html; charset=UTF-8"
|
p.html_part.content_type = "text/html; charset=UTF-8"
|
||||||
mail.html_part.body = @html_body
|
p.html_part.body = @html_body
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
attachments.each do |attachment|
|
attachments.each do |attachment|
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم