TScSMTPClient sending Mail with attachment but without body text

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
Nils
Posts: 9
Joined: Mon 29 Oct 2012 12:31

TScSMTPClient sending Mail with attachment but without body text

Post by Nils » Fri 29 Jul 2022 11:18

Sending an mail with TScSMTPClient in version 10.1.1 with an attachment but without a body text results in the file as body text.

The email body then looks like this:

Code: Select all

Content-Type: application/pdf;
	name=xxxxxx.PDF
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=xxxxxx.PDF

JVBERi0xLjcNCiXi48/TDQoyIDAgb2JqDQo8PA0KL1R5cGUgL1hPYmplY3QNCi9TdWJ0eXBlIC9J
bWFnZQ0KL0NvbG9yU3BhY2UgL0RldmljZVJHQg0KL0JpdHNQZXJDb21wb25lbnQgOA0KL0ZpbHRl
...

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: TScSMTPClient sending Mail with attachment but without body text

Post by Dimon » Mon 01 Aug 2022 14:28

Thank you for the information. We have reproduced the issue and fixed it. This fix will be included in the next SecureBridge build.
As a workaround, you should set a space for the body text.

Code: Select all

  Message.Body.Text := ' ';

Post Reply