I'm using Mailkit to send mails in my .Net Core 5 mvc application. In Visual Studio everything works fine when debugging. I receive the mails i send so i know the settings are correct. But when i publish the application to IIS, i'm no longer receiving the mail.
In my logging, everything looks fine. I'm getting that the message got sent.I'm using ovh to send the mail with these settings
try
{
await client.ConnectAsync("ssl0.ovh.net", 587, SecureSocketOptions.StartTls);
await client.AuthenticateAsync("myEmailadress", "myPassword");
await client.SendAsync(message);
await client.DisconnectAsync(true);
_log.savelog("success");
}
catch(exception ex)
{
_log.savelog("error");
}
The above settings work in Visual Studio when debugging. The log says "success". After publishing, no mail is received while the log says "success" I have no idea where to look for the problem
.Net Core 5 - Mailkit : cannot send mail after publish
Related questions
- Site-To-Site VPN on OVH
5148
10.05.2018 18:48
- HTTP2 on IP Load Balancer
1913
06.02.2018 02:59
- SSL Error 503: Backend unavailable
1667
16.12.2019 19:09
- Nftables good pratices
1438
22.02.2019 14:50
- Create DNS for domain
1297
02.05.2018 13:50
- Network interfaces issue
1273
03.07.2018 05:09
- Load Balancer IP and vrack
1245
30.05.2018 17:14
- Multiple Backends with the Load Balancer
1202
27.06.2018 08:39
- How To Setup netgear wif extender
1201
09.03.2019 02:24
- IP Load Balancers hijacking letsencrypt/certbot /.well-known/acme-challenge/
1127
26.10.2018 02:43