In the Programmer’s Guide, it speaks of Email, Outlook, Exchange, Thunderbird, etc.
Hi Jeff,
Thank you for writing to Aspose Support team.
You can use the [MailMessage API](http://www.aspose.com/docs/display/emailnet/Managing+Email+Message+Files+with+MailMessage)
to create and save pre-filled messages for lateral view. You can create the message file, add attachments to it, fill the subject and message body details and then save to the following email formats that will open directly in default mail application.
-
MSG format
-
MSG Unicode format
-
EML format
Code:
MailMessage msg = new MailMessage("from@domain.com", "to@domain.com", “Test Subject”, “Test body”);
msg.Attachments.Add(new Attachment(“a.pdf”));
msg.Attachments.Add(new Attachment(“anotherPdf.pfd”));
msg.Save(“output.msg”, Aspose.Email.Mail.SaveOptions.DefaultMsg);
Thank you, both. 2 more questions, please:
Hi,
1. There is no other way than saving the message to disc first for opening the email.
2. Could you please your requirements about the opening of such emails with Gmail app, hotmail, etc.? As far as our knowledge is concerned, there is no such option of opening MSG or EML files with Gmail, hotmail or any other public service app. Please elaborate your requirements for further assistance.
The requirement is that I want to auto-generate an email form the app and send it to the user’s email app. I don’t want to deal with editing, sending, forwarding, etc. I want to simply send a barebones email message to the user’s default email app and let the default app handle all the heavy lifting.
Hi,
This may not work for other email apps than MS Outlook as the flag is specific to MS Outlook. When a message is sent using the Aspose.Email API, it automatically appears in the Sent items of these emails services and you don’t have to mark it explicitly as Sent.