Is use .net winform application to send an e-mail via thie code :
SmtpClient smtpCli = new SmtpClient();
smtpCli.Host = SynEmailing.Properties.Settings.Default.SMTP_Host;
smtpCli.Port = Convert.ToInt32(SynEmailing.Properties.Settings.Default.SMTP_Port);
the mail is sent when I close the application or when i wait for a long time.
how can I do to be sure that the mail is sent when the line smtpcli.send(...) is executed ?