System.Web.Mail.MailAttachment problems with sending a message with attachment file
-
Hello everyone! I know that System.Web is obsolete, but I can't use System.Net. becouse MS update for System.Net does't work for me. So I have to use System.Web.Mail.MailMessage instead. It works fine. But when I try to attach file with
mailMessage.Attachments.Add(new System.Web.Mail.MailAttachment(Settings.Default.LicenseFilesStore + licenseFilePath));
My e-mail simply could't be delivered Could someone please provide me with an advice. M.b. suggestion to download & use some custom developed smtp class. Thanks in advance. -
Hello everyone! I know that System.Web is obsolete, but I can't use System.Net. becouse MS update for System.Net does't work for me. So I have to use System.Web.Mail.MailMessage instead. It works fine. But when I try to attach file with
mailMessage.Attachments.Add(new System.Web.Mail.MailAttachment(Settings.Default.LicenseFilesStore + licenseFilePath));
My e-mail simply could't be delivered Could someone please provide me with an advice. M.b. suggestion to download & use some custom developed smtp class. Thanks in advance.ZenyukIV wrote:
becouse MS update for System.Net does't work for me.
And why's that?
ZenyukIV wrote:
My e-mail simply could't be delivered
Was there any return message?? Some kind of error message?? Anything on the recipients end at all??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
ZenyukIV wrote:
becouse MS update for System.Net does't work for me.
And why's that?
ZenyukIV wrote:
My e-mail simply could't be delivered
Was there any return message?? Some kind of error message?? Anything on the recipients end at all??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007Dave Kreskowiak wrote:
And why's that?
I don't know why MS update for System.Net does't work for me. So I use System.Web
Dave Kreskowiak wrote:
Was there any return message?? Some kind of error message?? Anything on the recipients end at all??
Return message - "protocol is unknown" Exception data - "System.Collections.ListDictionaryInternal" Nothing on the recipients with attached file. But works well without attachment. Thanks for help
-
Hello everyone! I know that System.Web is obsolete, but I can't use System.Net. becouse MS update for System.Net does't work for me. So I have to use System.Web.Mail.MailMessage instead. It works fine. But when I try to attach file with
mailMessage.Attachments.Add(new System.Web.Mail.MailAttachment(Settings.Default.LicenseFilesStore + licenseFilePath));
My e-mail simply could't be delivered Could someone please provide me with an advice. M.b. suggestion to download & use some custom developed smtp class. Thanks in advance.Thanks for everyone. I've refused using System.Web namespace becouse I've solved the problem with System.Net The problem was pretty stupid. I've downloaded update for Framework 2.0 link[^] and installed it to ALL CUSTOMERS' PCs.