0
Answer

Cannot implicitly convert  SapBobsCom.attachment to System.net.mail

Photo of Ramco Ramco

Ramco Ramco

Mar 17
204
1

Hi

  I have below code & i am getting error - "Cannot implicitly convert  SapBobsCom.attachment to System.net.mail.attachment

SAPbobsCOM.Attachment attachment = new SAPbobsCOM.Attachment();
attachment.FileName = @"10.0.1.30\SAP_Attachments\250314_205951");
message.Attachments.Add(attachment);

Thanks

Answers (0)