smtpclient Questions

4

I'm trying to send an email from my .Net 6 application from my office365 email account using following configuration following this "EmailConfiguration": { "From": "XXXXXX...
Hemphill asked 10/12, 2023 at 12:46

3

I am getting this error while sending email from my application. Can anyone suggest any solution. Service not available, closing transmission channel. The server response was: 4.3.2 Service not...
Boccherini asked 4/10, 2012 at 17:48

2

Solved

I'm trying to set up email confirmation for an ASP.NET MVC5 website, based on the example AccountController from the VS2013 project template. I've implemented the IIdentityMessageService using Smtp...

5

Solved

I'm sending MailMessages with an SmtpClient (being delivered successfully) using an Exchange Server but would like my sent emails to go to the Sent Folder of the email address I'm sending them from...
Domoniquedomph asked 18/3, 2010 at 15:49

3

Solved

I am sending a mail using C# using the SmtpClient class. I am doing the following things before sending the mail. var mailMessage = new MailMessage(); model.ToAddresses.ForEach(to => mailMessa...
Westernism asked 24/5, 2013 at 14:31

2

Solved

I'd like to use MailKit to send an email through our Exchange server, using the credentials of the process. Building up a System.Net.Mail.SmtpClient and NetworkCredential with domain/username/passw...
Bovine asked 19/3, 2021 at 7:49

3

Solved

While working with Email sending in C#.NET in visual studio 2008 i got the below error A connection attempt failed because the connected party did not properly respond after a period of time, or...
Nyasaland asked 18/8, 2011 at 5:15

1

Solved

My CreateUserWizard sends an email when I press a button. The email is send via app password as follows Protected Sub NewUserWizard_SendingMail(ByVal sender As Object, ByVal e As System.Web.UI.WebC...
Circumfluent asked 14/12, 2022 at 6:14

3

Solved

I'm trying to send an email with Gmail account. I was able to send emails with yahoo, however, it doesn't work anymore, for some unknown reason. Which i posted a question about that as well, but no...
Brenda asked 16/12, 2019 at 19:7

1

When I send a mail with the option "Encrypt only" in Outlook I receive a mail like this : Currently, I use SMTPClient with MailMessage to send mail : MailMessage message = new MailMessa...
Rhoda asked 6/9, 2022 at 7:34

2

Solved

We have an email accounts as [email protected] and this is configured in Office365. We want to send an email using [email protected] from C#. Below code sometimes work and sometimes not (...
Ferd asked 24/1, 2022 at 15:44

5

Solved

I'm trying to send email with my website's address from a C# application. This worked fine for several months until recently. (maybe my provider changes some things or someone else changed settings...
Fantail asked 8/12, 2012 at 2:18

2

I am trying to send an automated email using Outlook.com smtp support. However I am get the following exception: System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException...
Heeltap asked 18/9, 2013 at 2:28

5

Solved

I see different versions of the constructor, one uses info from web.config, one specifies the host, and one the host and port. But how do I set the username and password to something different from...
Penelope asked 4/5, 2010 at 16:5

4

Solved

I'm trying to send emails from a system that connects to internet through a http proxy which is set in Internet Options. i'm using SmtpClient. Is there any way to send mails with SmtpClient throu...
Unijugate asked 10/5, 2009 at 6:40

7

I'm using SmtpClient to send a simple email. The email consists of about 25 plaintext characters so it's small. It however takes the SmtpClient about 2000 milliseconds to send one of them. I do n...
Fibrovascular asked 18/4, 2011 at 15:29

4

Solved

The SmtpClient.Send() method is throwing this exception when I try to send an email to an address containing an accentuated character (é): System.Net.Mail.SmtpException: The client or server is ...
Amasa asked 6/11, 2012 at 22:56

2

I've been having this problem for months, and it's driving me nuts. I have a windows service written in C# (.NET 4.5) which basically sends emails, using an outlook account (I think it's an office3...
Perla asked 8/7, 2014 at 13:59

6

Solved

I'm a bit perplexed on how to manage SmtpClient now that it is disposable, especially if I make calls using SendAsync. Presumably I should not call Dispose until SendAsync completes. But should I e...
Wigley asked 1/9, 2011 at 20:51

1

I have .NET 4.5.2 application that is using SmtpClient to send emails. The application is installed on Windows 2012 R2 server. When I disable TLS 1 and TLS 1.1 and enable only TLS 1.2, the applicat...
Vasquez asked 10/12, 2020 at 4:20

1

Solved

I am using Mailkit library to send e-mails. This is the code to do so: public async Task SendAsync(IdentityMessage message) { if (message == null) return; LinkedResource inline = new LinkedRe...
Joli asked 27/1, 2021 at 11:7

5

Solved

I'm using the following code from this answer Sending email in .NET through Gmail. The trouble I'm having is adding an attachment to the email. How would I add an attachment using the code below? u...
Freyah asked 17/2, 2011 at 20:52

3

Solved

I'm attempting to use the System.Net.Mail.SmtpClient class to relay an email through my company's email server. All SMTP connections to the mail server have to be SSL and it uses a self signed cert...
Limassol asked 28/1, 2010 at 10:32

5

Solved

I'm trying to write a basic console app that will send an email. The problem is that I keep getting the Socket exception: An attempt was made to access a socket in a way forbidden by its access...
Omen asked 2/10, 2012 at 14:17

6

Solved

I have been trying to send an email by C#. I have Googled for various examples and have taken bits and pieces from each and from the standard code which everyone would most probably be using. stri...
Describe asked 1/7, 2010 at 5:13

© 2022 - 2024 — McMap. All rights reserved.