javax.mail.BodyPart.setContent could not be converted (Java Language Conversion Assistant) (1) 

In the Java language, this method sets the content with the specified object and type.

In the .NET Framework, there is no direct equivalent.

To correct this error

  • Use the System.Web.Mail.MailAttachment class.

See Also

Reference

System.Web.Mail Namespace
MailMessage Class
MailAttachment Class

Concepts

Conversion of JMS Applications