Ejemplo n.º 1
0
 private async void sendPlainTextMessageButton_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrWhiteSpace(RecipientAddress))
     {
         DemoSendMessage demo = new DemoSendMessage();
         await demo.SendMessage(
             RecipientAddress,
             "Test",
             "Hello world\n\nThis is a test to send an email via app.config settings.",
             chkSendToPickupFolder.Checked,
             false);
     }
     else
     {
         MessageBox.Show("Requires an email address to sent a messag to.");
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Used to clean up pickup folder.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void pickupFolderCleaner_Click(object sender, EventArgs e)
        {
            DemoSendMessage demo = new DemoSendMessage();

            demo.CleanPickupFolder();
        }