Send method successfully called but no email was sent

Hi I’m using Aspose.Mail to send an Email with an Italian PEC server (Certified email - Wikipedia).

Using c As SmtpClient = …
c.Send(mess)
End Using

No errors occurs, but on the PEC server the email seems never arrived!
Is there a way to know what happened?
Per example, a detailed log with information about the call made to the PEC server?

Hello @gmarre,

Welcome to our support forum!

You can enable activity logging in SmtpClient to capture the interaction between your app and the server:

' Set the path to the log file using the LogFileName property.
client.LogFileName = "C:\Aspose.Email.Smtp.log"

1 Like