Top "Smtpclient" questions

on .NET Framework , allows applications to send e-mail by using the Simple Mail Transfer Protocol (SMTP)

Why do I get "'property cannot be assigned" when sending an SMTP email?

I can't understand why this code is not working. I get an error saying property can not be assigned MailMessage …

c# email smtpclient
How to set username and password for SmtpClient object in .NET?

I see different versions of the constructor, one uses info from web.config, one specifies the host, and one the …

c# smtpclient
How to send email using simple SMTP commands via Gmail?

For educational purposes, I need to send an email through an SMTP server, using SMTP's fundamental and simple rules. I …

email smtp gmail smtpclient smtp-auth
Mailbox unavailable. The server response was: 5.7.1 Unable to relay Error

I have Hosted one of my website on netsol server. From there a contact.aspx has to send email using …

c# asp.net smtpclient
Getting "The remote certificate is invalid according to the validation procedure" when SMTP server has a valid certificate

This seems a common error but while I've found a work-around (see below) I can't pin down the reason I'm …

c# email ssl smtpclient client-certificates
smtpclient " failure sending mail"

here is my code for(int i = 0; i < number ; i++) { MailAddress to = new MailAddress(iMail.to); MailAddress from = new …

c# .net smtpclient
What are best practices for using SmtpClient, SendAsync and Dispose under .NET 4.0

I'm a bit perplexed on how to manage SmtpClient now that it is disposable, especially if I make calls using …

c# .net-4.0 smtpclient
SmtpClient with Gmail

I'm developing a mail client for a school project. I have managed to send e-mails using the SmtpClient in C#. …

c# mono gmail monodevelop smtpclient
How to enable SSL for SmtpClient in Web.config

Is there a way to set the EnableSSL from the web.config? I could set this property in code, but …

asp.net .net web-config smtpclient
SmtpClient: A connection attempt failed because the connected party did not properly respond after a period of time

While working with Email sending in C#.NET in visual studio 2008 i got the below error A connection attempt failed …

c# email gmail smtpclient