1
Answer

Error - Attachment is not null here

Photo of Ramco Ramco

Ramco Ramco

Mar 17
107
1

Hi

  I am getting error here - Attachment is not null here -  message.Attachments.Add((System.Net.Mail.Attachment)attachment);

SAPbobsCOM.Attachment attachment = new SAPbobsCOM.Attachment();
attachment.FileName = @"10.0.1.30\SAP_Attachments\Outgoing Payments_204673_20250314_205951");
message.Attachments.Add((System.Net.Mail.Attachment)attachment);

Thanks

Answers (1)