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
-1
votes
1 answer

.Net.Mail body message lose the format while is sent c# .net

I'm using a string builder to create a body message while trying to do something. the issue es I'm getting the value from the string builder and this one is formatted. Example from my string builder: Following files were attached by email: 1.…
Javier Salas
  • 1,064
  • 5
  • 15
  • 38
-1
votes
1 answer

System.Net.Mail Display Name Fails

I'm currently using System.Net.Mail in the following fashion: Message.BodyEncoding = Encoding.UTF8 Message.From = New System.Net.Mail.MailAddress(EMail) Message.IsBodyHtml = True Message.Subject = theSubject Message.Body = theBody Dim client As New…
Rein S
  • 889
  • 6
  • 18
-2
votes
2 answers

Cannot implicitly convert type ('string', 'string') to System.Net.ICredentialsByHost

So i tried making an email sender and give my account info and this error showed up: Cannot implicitly convert type ('string', 'string') to System.Net.ICredentialsByHost. This is the code. SmtpClient SmtpServer = new SmtpClient("smpt.gmail.com",…
-2
votes
2 answers

How do I add another email address in my C#?

I would like to add an extra email address for messages to be sent/forwarded to when the email form submit button is clicked, whats the easiest way to do this? public partial class Contact : System.Web.UI.Page { protected void Page_Load(object…
-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
1 2 3
19
20