We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Sending the same email via Outlook and smtp

Assuming I manage to create my email correctly is there a way to send the same email using different methods - in my case I want to use SMTP on the server and outlook on the client?

Something like:

MailMessage msg = MailMessage.FromFile (…)
SMTPClient.Send(msg)
OutlookClient.Send(msg)

???

Hi,

There are basically 2 steps involved in your process

  1. import the mht file into MailMessage class
  2. send the email using Smtp protocol

So, if the import works fine and makes the message in proper way, the Aspose.Network library itself acts like an email client that sends the message through the SMTP server. Just like Outlook 2003/2007 sends the message, but you are provided with an interface. Similarly, the Aspose library provides the API for importing, composing and sending the message.

Please post the mht file here. We will analyze it for you to send it properly using our library.