Questions tagged [system.web.mail]

14 questions
4
votes
1 answer

System.Net.Mail timing out on send

I have some older code that works fine for sending emails, but visual studio tells me that the code is obsolete and I should change it over to Net.Mail from Web.Mail. I have rewritten most of it, but I have a few questions. Here is the original,…
Anders
  • 12,088
  • 34
  • 98
  • 146
3
votes
2 answers

Porting System.Web.Mail functionality to System.Net.Mail

The following function works perfectly: protected void SendWebMailMessage(string DisplayName, string From, string ReplyTo, string To, string Subject, string Body, string Attachments) { System.Web.Mail.MailMessage msg = new…
Tom V
  • 125
  • 5
  • 11
2
votes
2 answers

System.Net.Mail.MailMessage Fields Dictionary

We’re currently in the process of updating the email dispatch part of our application to replace the deprecated set of classes under System.Web.Mail with the System.Net.Mail classes. The changes have been fairly straightforward but we’ve hit an…
Graham
  • 305
  • 1
  • 5
  • 11
1
vote
2 answers

"Failure sending Mail" error on program

my friend gave me a program which runs in his laptop, he coded with system.webmail and C#, that program can send the email in his machine, but when i run and send it out in my machine, the email didn't send and get "Failure Sending Mail", but in his…
XML guy
  • 369
  • 4
  • 6
  • 15
0
votes
1 answer

Send mail to multiple recipients with attachment ASP.NET

I am building a simple e-mail application to send emails to a list of people with an attachment. To be able to add an attachment (from what I have found out) I need to use System.Web.Mail. Is there any limit to how many email addresses I can send to…
Fred
  • 1,129
  • 1
  • 14
  • 35
0
votes
1 answer

can we use system.web.mail in wcf?

can we use system.web.mail in wcf library if yes then how can i get system.web.mail.dll
user601367
  • 2,308
  • 12
  • 34
  • 44
0
votes
1 answer

Does a certificate have to be valid to mail using CDOSYS and SMTPS?

Due to a limitation on our SMTP provder's side, we're having to use System.Web.Mail (deprecated), which is a wrapper around CDOSSYS. Because we'd like to avoid having to change multiple configurations if we switch providers at a later date, we set…
Bret Walker
  • 1,796
  • 5
  • 20
  • 41
0
votes
1 answer

Some emails delayed or not delivered when using system.web.mail in asp.net

//i have left out some parameters for readability public static string MailForCandidate(string username, string FromAddr, string ToAddr, string strSubject) { try { MailMessage msg = new MailMessage(); …
StackTrace
  • 9,190
  • 36
  • 114
  • 202
0
votes
1 answer

Are SMTP relay requirements for System.Net.Mail different than System.Web.Mail

I deployed my web app to our production IIS 6.0 server and everything is working except when my code attempts to send email to an address that is NOT in the domain of our email server. I've seen various symptoms but this seems the most…
John Adams
  • 4,773
  • 25
  • 91
  • 131
0
votes
0 answers

System.Web.Mail.SmtpMail Send SSL 465 port exception

I use System.Web.Mail class to send mail due to System.Net.Mail not supported implicit SSL. My code is the next: System.Web.Mail.MailMessage email = new System.Web.Mail.MailMessage(); string SEND_USING =…
user829081
  • 164
  • 1
  • 17
0
votes
2 answers

Attachment is not going with email

And i am sending mails from below details : // language -- C# // import namespace using System.Web.Mail; private void SendEmail() { const string SERVER = "relay-hosting.secureserver.net"; MailMessage oMail = new…
Pawan
  • 2,150
  • 11
  • 45
  • 73
0
votes
1 answer

Converting System.Web.Mail to System.Net.Mail

I need some help converting System.Web.Mail to System.Net.Mail to help send out e-mail notifications appropriately on some forms. The old code snippet used is below: MailMessage NotificationEmail = new MailMessage(); NotificationEmail.BodyFormat =…
Ogreintel
  • 1,143
  • 2
  • 11
  • 15
0
votes
1 answer

System.Web.Mail works, System.Net.Mail doesn't

I am writing an application that has to send some emails. After testing for quite some time i have found the following: My System.Net.Mail based mail solution doesn't work. The error i get from the mail server is: Unable to read data from the…
Tys
  • 3,592
  • 9
  • 49
  • 71
-8
votes
1 answer

How I can transform my C# code : System.Web.Mail" transform by "System.Net.Mail"

I am using "System.Web.Mail" to send e-mail via SMTP using C# with my following code. It is working but I think It is obsolete So I want use "System.Net.Mail" How can I change or transform my following code using System; using System.Data; using…
aspkiddy
  • 23
  • 1
  • 9