How to attach a RAR file to an email in c#?
问题 I want to send an email that has multiple attachments using the following code but it doesn't work for RAR files. What is the problem? For every attachment I have a class that contains some properties of the attached file and its content: public class AttachmentFile { [StringLength(200)] public string FileName { get; set; } [StringLength(15)] public string Extension { get; set; } [StringLength(100)] public string Signature { get; set; } public byte[] Content { get; set; } [StringLength(500)]