Free Support Forum - aspose.com

Aspose Emails C++ crash when adding an attachment


#1

Hello Aspose mail C++ support team.

I’m using Aspose email C++ 18.11. Currently, when I tried to attach a binary file into the email and save it back, it crash when save.

System::SharedPtrAspose::Email::MailMessage message = System::MakeObjectAspose::Email::MailMessage();
System::SharedPtrAspose::Email::Attachment attachment= System::MakeObjectAspose::Email::Attachment(System::String(L"TinyCore-9.0rc1.iso"));

message2->set_HtmlBody(System::String(L"This is a test"));
message2->AddAttachment(attachment);
message2->Save(strOutputPath);

Could you please look at this problem?


#2

@tienhunghcm

We have logged this issue with ID “EMAILCPP-187” for further investigation. You will automatically be informed here once we have more information to share.