private void HyperLinkSendTestEmail_Click(object sender, RoutedEventArgs e) { if (string.IsNullOrEmpty(this.m_ClientOrderClone.EmailAddress) == false) { JObject jsonRequest = APIRequestHelper.GetSendEmailMessage(this.m_ClientOrderClone.EmailAddress, "A SARS-CoV-2 test has been ordered with Yellowstone Pathology Institute.", "This email is to confirm that a SARS-CoV-2 test has been ordered with Yellowstone Pathology Institute. You will receive an email at this address when your result is complete."); APIResult apiResult = APIRequestHelper.SubmitAPIRequestMessage(jsonRequest); MessageBox.Show($"An email was sent to {this.m_ClientOrderClone.EmailAddress}"); } else { MessageBox.Show("You must enter an email address to use this function."); } }