MonicaBellucci-3844 avatar image
0 Votes"
MonicaBellucci-3844 asked Viorel-1 commented

Can not see in OUTLOOK an email sent via SMTP Client (C#)

I have implemented sending email via smtp client. c#

My code:
message.From = new MailAddress(_smtpSettings.Username);
using (var client = new SmtpClient(_smtpSettings.Host, _smtpSettings.Port))
client.UseDefaultCredentials = false;
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.EnableSsl = true;
client.Credentials = new NetworkCredential(_smtpSettings.Username, _smtpSettings.Password);
await client.SendMailAsync(message);

SMTP_FROM=gmail email

I can not see the emails inside outlook from our production enviroment even in "Spam". (email to gmail, etc works good)
We have the same flow on other enviroments, and all email email sends correctly.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi MonicaBellucci-3844,

Please understand that tag “office-outlook-itpro” mainly focus on general issues about the Outlook desktop client. Since according to your description, the email is sent via the smtp client. c# you developed, I’ll change the tag to “dotnet-csharp” instead. Thanks for your understanding.

1 Vote 1 ·

Did you also try sending the E-mails from the Web site, using the same sender?

0 Votes 0 ·

0 Answers