Currently Im trying to create an .eml file in C# with some information (shown below) that should be opened as a draft in Lotus Notes. The creation of the .eml works and contains the information I want to have. However the problem is, if I open this file in Lotus Notes, it is not shown as a draft, but like an E-Mail already sent. You cant edit the recipients. But thats what I want to have. The user should check the e-mail before being sent and should be able to change the recipients.
I did some research and found this thread, I tried the suggested workaround in the comments, but it did not work out. I didnt find any other information on this topic besides that thread.
Here is my sourcecode:
private void CreateEMailTemplate()
{
MailMessage EMailTemplate = new MailMessage();
EMailTemplate.Headers.Add("X-Unsent", "1");
EMailTemplate.From = new MailAddress("test@test.com", "Testuser");
EMailTemplate.To.Add("test@test.com");
EMailTemplate.Subject = "Create E-Mail Template";
EMailTemplate.Body = "Body of the Template!";
SmtpClient smptClient = new SmtpClient();
smptClient.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory;
smptClient.PickupDirectoryLocation = @"C:\Users\Test\Desktop\";
smptClient.Send(EMailTemplate);
}
I would be thankful for any advice or answer, if this is possible at all with Lotus Notes or if their is another way to do it. Thank you and have a nice weekend!