Kак собрать файл ( .\шаблон.msg ) с текстом в кодировке ascii (cp-1251)?

“”" Kак собрать файл ( .\шаблон.msg ) с текстом в кодировке ascii (cp-1251) ??? “”"

from independentsoft.msg import Message
from independentsoft.msg import Recipient
from independentsoft.msg import ObjectType
from independentsoft.msg import DisplayType
from independentsoft.msg import RecipientType
from independentsoft.msg import MessageFlag
from independentsoft.msg import StoreSupportMask

message = Message()
recipient1 = Recipient()
recipient1.address_type = “SMTP”
recipient1.display_type = DisplayType.MAIL_USER
recipient1.object_type = ObjectType.MAIL_USER
recipient1.display_name = “John Smith”
recipient1.email_address = “ru.”
recipient1.recipient_type = RecipientType.TO

recipient2 = Recipient()
recipient2.address_type = “SMTP”
recipient2.display_type = DisplayType.MAIL_USER
recipient2.object_type = ObjectType.MAIL_USER
recipient2.display_name = “Mary Smith”
recipient2.email_address = “ru.”
recipient2.recipient_type = RecipientType.CC

message.subject = “Test”
message.body = “____ КРИВОЙ ТЕКСТ ____” # ‘’’ Bad Text -> ____ КРИВОЙ ТЕКСТ ____’’’

message.display_to = “John Smith”
message.display_cc = “Mary Smith”
message.recipients.append(recipient1)
message.recipients.append(recipient2)
message.message_flags.append(MessageFlag.UNSENT)
message.store_support_masks.append(StoreSupportMask.CREATE)
message.save(“C:\output.msg”)

@Vlad76s,

Я пытался понять ваши требования и не смог полностью понять их. Можете ли вы поделиться тем, что вы на самом деле подразумеваете под сборкой? Пожалуйста, поделитесь тем, чего вы хотите достичь, используя Aspose.Email, и я постараюсь помочь вам в этом.