Closed johnwc closed 6 years ago
What you can do is just set sender to null like this.
using (var email = new Email(
null,
SubjectTextBox.Text, DraftMessageCheckBox.Checked))
{
//email.Recipients.AddTo(ToTextBox.Text);
email.Recipients.AddCc(CcTextBox.Text);
email.Recipients.AddBcc(BccTextBox.Text);
email.Subject = SubjectTextBox.Text;
email.BodyText = TextBodyTextBox.Text;
email.BodyHtml = HtmlBodyTextBox.Text;
email.SentOn = SentOnDatePicker.Value.ToUniversalTime();
// etc...
}
Is it possible to create a item with no sender set? When creating a draft, I'd like to have no sender and let Outlook set this when they actually send the email.