Sign In  Sign Up Live-Chat

Sending the same email via Outlook and smtp

Last post 07-18-2008, 8:13 AM by saqib.razzaq. 1 replies.
Sort Posts: Previous Next
  •  07-17-2008, 7:24 AM 135891

    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)

    ????

     
  •  07-18-2008, 8:13 AM 136077 in reply to 135891

    Re: Sending the same email via Outlook and smtp

    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.


    Best Regards,

    Saqib Razzaq
    Support Developer
    Aspose Guangzhou Team

     
View as RSS news feed in XML