# Email Setup Error

**URL:** <https://forum.manager.io/t/email-setup-error/39512>\
**Category:** Uncategorized\
**Created:** [January 27, 2022, 6:28am UTC](https://forum.manager.io/t/email-setup-error/39512 "2022-01-27T06:28:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![siyab](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@siyab](https://forum.manager.io/u/siyab)\
**Post date:** [January 27, 2022, 6:28am UTC](https://forum.manager.io/t/email-setup-error/39512/1 "2022-01-27T06:28:43Z")

</div>

Hi,

I am trying to setup the email for our business, but i get the following error.

```auto
System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch
   at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception)
   at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Security.SslStream.AuthenticateAsClient(SslClientAuthenticationOptions sslClientAuthenticationOptions)
   at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation)
   at System.Net.TlsStream.AuthenticateAsClient()
   at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)
   at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port)
   at System.Net.Mail.SmtpClient.GetConnection()
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at ManagerServer.HttpHandlers.Businesses.Business.Settings.EmailSettings.EmailTest.Post() in C:\projects\manager\ManagerServer\HttpHandlers\Businesses\Business\Settings\EmailSettings\EmailTest.cs:line 88
   at ManagerServer.Startup.<>c.<b__1_1>d.MoveNext() in C:\projects\manager\ManagerServer\Startup.cs:line 123
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)

```

Any help is appreciated.

Regards,  
Siyab

---

<div class="post-metadata">

**Author:** ![Patch](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Patch](https://forum.manager.io/u/Patch)\
**Post date:** [January 27, 2022, 6:49am UTC](https://forum.manager.io/t/email-setup-error/39512/2 "2022-01-27T06:49:24Z")

</div>

Can you provided more details

- Do other feature of Manager work OK
- has email worked OK for you in the past, via manager or via other email apps

But looking at the error, it looks like this is a problem which is external to Manager

> [@siyab](#):
>
> `System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch`

Btw this section of the guides maybe relevent, partiulalry the last guide (and linked guides) if you need further help  
**Emails:** [Email transactions and reports](https://www.manager.io/guides/10643) | [Attach files to emails sent from Manager](https://www.manager.io/guides/15915) | [Use email templates](https://www.manager.io/guides/10392) | [Review email](https://www.manager.io/guides/11144) | [Track whether emailed attachments have been viewed](https://www.manager.io/guides/36540) | [Troubleshoot email issues](https://www.manager.io/guides/9100)

---

<div class="post-metadata">

**Author:** ![siyab](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@siyab](https://forum.manager.io/u/siyab)\
**Post date:** [January 27, 2022, 7:02am UTC](https://forum.manager.io/t/email-setup-error/39512/3 "2022-01-27T07:02:17Z")

</div>

> - Do other feature of Manager work OK

- Yes everything works fine. We have the cloud version.

> - has email worked OK for you in the past, via manager or via other email apps

- This is the first time I have tried to setup the email for the company in Manager. The same email works fine on Outlook.

---

<div class="post-metadata">

**Author:** ![siyab](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@siyab](https://forum.manager.io/u/siyab)\
**Post date:** [January 27, 2022, 8:50am UTC](https://forum.manager.io/t/email-setup-error/39512/4 "2022-01-27T08:50:55Z")

</div>

Hi,

Was able to solve it.

Initially, we entered the contacts name in the Username field. Once, we put in the email id under Username tab, it worked.

Thanks

---

<div class="post-metadata">

**Author:** ![Thomas1](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/thomas1/32/39111_2.png) [@Thomas1](https://forum.manager.io/u/Thomas1)\
**Post date:** [June 22, 2022, 6:07pm UTC](https://forum.manager.io/t/email-setup-error/39512/5 "2022-06-22T18:07:20Z")

</div>

I have exactly the same error message as you, but my username is correct (e-mail address), so I’m still left with the problem.  
I don’t know if the problem is “external to Manager” because my Microsoft Outlook uses exactly the same credentials just fine.  
It is also my first time trying to set up e-mail in Manager.

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [June 22, 2022, 6:28pm UTC](https://forum.manager.io/t/email-setup-error/39512/6 "2022-06-22T18:28:51Z")

</div>

Post screenshots of the internal error you got along with the error message as text

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [June 22, 2022, 6:54pm UTC](https://forum.manager.io/t/email-setup-error/39512/7 "2022-06-22T18:54:46Z")

</div>

Also, follow the instructions and furnish all information in this Guide: [Troubleshoot email issues | Manager](https://www.manager.io/guides/9100).

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [June 23, 2022, 7:30am UTC](https://forum.manager.io/t/email-setup-error/39512/8 "2022-06-23T07:30:29Z")

</div>

9 posts were split to a new topic: [Internal Error in Emails](https://forum.manager.io/t/internal-error-in-emails/41648)

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [July 5, 2026, 8:12pm UTC](https://forum.manager.io/t/email-setup-error/39512/9 "2026-07-05T20:12:59Z")

</div>

Uncategorized topics older than 3 years with no recent activity
