Adf.Base.Mail.FileSystemMailProvider.Send C# (CSharp) Method

Send() public method

Send a message to the 'MailDumpLocation', which indicates the PickupDirectory
public Send ( MailMessage message ) : void
message System.Net.Mail.MailMessage
return void
        public void Send(MailMessage message)
        {
            try
            {
                // This implementation dumps the message to the filesystem
                var client = new SmtpClient
                {
                    DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory,
                    PickupDirectoryLocation = StateManager.Settings["MailDumpLocation"].ToString()
                };

                client.Send(message);
            }
            catch (Exception ex)
            {
                LogManager.Log(ex);
                ValidationManager.AddError("Mail.Failed");
            }
        }
FileSystemMailProvider