Questions tagged [system.net.mail]

System.Net.Mail is a namespace of the .NET framework. It contains classes used to send electronic mail to a Simple Mail Transfer Protocol (SMTP) server for delivery.

System.Net.Mail is a namespace of the .NET framework. It contains classes used to send electronic mail to a Simple Mail Transfer Protocol (SMTP) server for delivery.

References

290 questions
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
0
votes
2 answers

Can't send mail in ASP.NET?

Guys I am trying to send an email using the code below in ASP.net but it is not working. However, the same code works for win forms. I am using c#. What seems to be the problem? try { using (System.Net.Mail.MailMessage message = new…
NewbieProgrammer
  • 874
  • 2
  • 18
  • 50
0
votes
0 answers

Could not send message to all recipients

I am trying to send a mail using Net.Mail. The error message that I get in the line "nClient.Send(nMail)" is: "Could not send mail to all recipients." I don't know where I did something wrong. Does anybody see my mistake? Thank you very much! …
tmighty
  • 10,734
  • 21
  • 104
  • 218
0
votes
2 answers

How to analyze Crash Dump using WinDbg

I've just had the app pool shut down in IIS 7.5 in Windows 7, because of what I think are 5 stackoverflows over the space of 5 minutes. Here's the explanation for the shut down: Application pool 'My Softwares AppPool' is being automatically…
localman
  • 497
  • 4
  • 14
0
votes
2 answers

performance of bulk emailing using system net mail

I have been asked to look into a bulk emailer for an intranet system and wanted some advice. Currently we use System.Net.Mail and send the emails synchronously via the customers own smtp server, typically Microsoft exchange. If we were allow them to…
DavidB
  • 2,566
  • 3
  • 33
  • 63
0
votes
1 answer

What possible errors could I expect to recieve in System.Net.Mail.SendCompletedEventHandler?

I am using the SendAsync method to send some emails out. What different errors could possibly be returned in the AsyncCompletedEventArgs in the SendCompletedEventHandler? Is there recommended practices for handling these?
JontyMC
  • 6,038
  • 6
  • 38
  • 39
0
votes
1 answer

System.Net.Mail works as localhost but when I add it to my web server it does not

This program works when I "Debug" in VWD 2010 as localhost. When I insert it into my webserver my Try...Catch get this error: Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=4.0.0.0, Culture=neutral,…
teledextri
  • 125
  • 1
  • 3
  • 14
0
votes
1 answer

isBodyHtml is true and AlternateViews set, still no View Code option in Outlook 2010 using c#

I have both .isBodyHtml=true and AlternativeViews option with one for text/html, but the View Code option in Outlook is still grayed out and not available for me to use. My code: var emailContent = "this should be…
Ian Davis
  • 19,091
  • 30
  • 85
  • 133
0
votes
1 answer

ITextSharp is outputting a blank document when Memorystream used as email attachment

When executing the following code no errors are thrown but the pdf generated as an attachment is blank and its file size is 0k. Edit: Dim page As Page = New Page() Dim form As HtmlForm = New HtmlForm() page.Controls.Add(form) Dim bpa As…
imaginationpluscode
  • 137
  • 1
  • 2
  • 17
0
votes
0 answers

System.Net.Mail Excel xml attachment not opening as excel file

I have a bit of a strange use-case for System.Net.Mail in that I do not want to save physical files, at any point in my transaction. I have a wcf web service that is acting as a router for mail. You make a simple request to send email and it works…
jyanks
  • 2,356
  • 1
  • 19
  • 36
0
votes
1 answer

Font size for an email sent using System.Net.Mail.SmtpClient

I have an ASP.Net web application that's been tested extensively. One portion of it sends an email automatically using System.Net.Mail.SmtpClient. During testing, from various Windows 7 machines, the emails were sent and were formatted with a…
Melanie
  • 3,021
  • 6
  • 38
  • 56
0
votes
3 answers

Can't Send Emails From my Website

Here I am in a strange situation. When I send the email from localhost it is working fine but when I upload the page to the server and try to send email, I get the following error The SMTP server requires a secure connection or the client was not…
Constantine
  • 99
  • 1
  • 10
0
votes
1 answer

Mailmessage.from not working as expected

thanks in advance for any help! I want it so when A@gmail.com receives the email it appears to be coming from B@gmail.com. I believed this would work but it continues to appear to come from A@gmail.com. I've attempted to use ReplytoList/Headers but…
John Churchley
  • 434
  • 4
  • 17
0
votes
0 answers

Sending Multiple Recepients in a single mail: Consequences

While sending email via System.Net.Mail to multiple recipients (one single email with multiple recipients), if one recipients address fail, will the rest reach the email? There might be duplicates of the same question, but I'm asking something…
hiFI
  • 1,887
  • 3
  • 28
  • 57
0
votes
1 answer

Images not embedding properly in dynamically generated email

I can't get my pictures to embed properly, when the email arrives they appear only as attachments. The "dynamic" part is that the number of pictures in an email isn't known until it's about to be sent. This is an example of what the HTML might look…
benplumley
  • 87
  • 7