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
2 answers

C# Sending a large number of emails using System.Net.Mail

We have an ASP.NET MVC application that sends a number of reports via e-mail to clients each month. Each e-mail attaches a monthly statement. Currently we have around 70 clients but this will hopefully increase over time. We have been seeing…
user327999
  • 443
  • 1
  • 9
  • 21
0
votes
2 answers

MVC3 e-mail to own address

I'm trying to send an email to myself after someone has posted a question. Although I'm receiving an email, it isn't what I need: the from mailaddress is my own instead of the person who asked the question. Is it possible to send a mail to yourself…
0
votes
1 answer

How to resend email using SendAsync() in asp.net

I am using SendAsync to send an email. The reason I'm using async is simply to free up the UI rather than send multiple emails. I have created the following callback event: static void SendCompletedCallback(object sender, AsyncCompletedEventArgs…
dotnetnoob
  • 10,783
  • 20
  • 57
  • 103
0
votes
1 answer

System.FormatException: The specified e-mail address is currently not supported

I receive this error when my code executes from my Windows 2003 server, however from my Windows 7 dev machine the mail process works flawlessly every time. Project is configured for 2.0 framework. Is there a missing component that is needed on the…
Mike
  • 5
  • 1
  • 4
0
votes
3 answers

How to Send mail from visual basic 2010 professional

I want to send a mail using gmail id, my code is as here under, but an error occurred. How can I solve this? Imports System.Net Imports System.Net.Mail Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As…
Bharat Bhatia
  • 9
  • 1
  • 1
  • 2
0
votes
1 answer

Mail message not sending. Program not responding

I have created a mail program that will send the email to my account. I have established System.Net, System.Net.Mail. I works on some computers (my main one), but whenever I try and do another computer, It doesn't send the message. I have it…
alaney
  • 1
  • 1
0
votes
2 answers

How to store a system.net.mail password in the database

I need to store email passwords which will be used with system.net.mail. These need to be retrieved and sent as plain text but I don't want to store them as plain text. This isn't really about security as its for an intranet and I just don't want…
spryce
  • 616
  • 7
  • 14
0
votes
4 answers

Sending emails that requires a secure connection

REMAKING QUESTION This code doesn't work The error is: The remote certificate is invalid according to the validation procedure. var client = new SmtpClient("smtp.domain.com.br", 25000) { Credentials = new NetworkCredential("username",…
Michel Ayres
  • 5,891
  • 10
  • 63
  • 97
0
votes
1 answer

ASP.NET MVC Leave a Copy of Email on Server

I have a ASP.NET MVC 4 project with EF. I' m using System.Net.Mail to send emails programmatically. MailMessage msg = new MailMessage(); msg.From = new MailAddress("JohnDoe@gmail.com", "John Doe"); msg.To.Add(new…
Misi
  • 748
  • 5
  • 21
  • 46
0
votes
1 answer

Sending Mail to 2 mail id in asp.net?

I have a user registration Form. If a new User register their account in that account. I need to send a message a new user has been registered to my company mail-id and also client mail-id. Now i do it for a single mail-id. How can I do it for 2…
Prince Antony G
  • 932
  • 4
  • 18
  • 39
0
votes
1 answer

Odd error when attaching files with System.Net.Mail

I have an application that occasionally sends out an e-mail with three attachments. One attachment is the file initially sent to my mailbox by a user, so I'm replying with the same file they sent me. I do this by MemoryStream, and it works just…
ParaSwarm
  • 123
  • 2
  • 8
0
votes
2 answers

Email Templating Basics, with C#

I want to create my own email template without having to use third party software,I would just like to clear up some basics for my self :) Firstly, do all email templates come down to pretty much being HTML body with inline CSS? Thus sending a…
Heinrich
  • 2,144
  • 3
  • 23
  • 39
-1
votes
1 answer

c# MimeKit mail not sent without error. System.Net.Mail works fine

I made a console application to test MimeKit, it's executed without errors but emails never arrives. i usae same data with System.Net.Mail and all works fine. What can be the problem? MimeKit code: var email = new MimeMessage(); …
gt.guybrush
  • 1,320
  • 3
  • 19
  • 48
-1
votes
1 answer

System.Net.Mail.SmtpException: 'Mailbox unavailable. The server response was: Requested mail action not taken: mailbox unavailable'

I am getting this message since Yahoo have made changes in user authentication. My code still works if I use option suggested by Yahoo, which is: While you switch apps or update your app, you can give the old app temporary access. Just remember,…
Ivan K
  • 1
  • 1
-1
votes
1 answer

What is the default encoding used in System.Net.Mail.Attachment.CreateAttachmentFromString in c#?

You can use System.Net.Mail.Attachment.CreateAttachmentFromString without specifying the encoding like so Attachment.CreateAttachmentFromString(content, name), what encoding will be used to encode content string in this case?
Mykhailo Seniutovych
  • 3,527
  • 4
  • 28
  • 50
1 2 3
19
20