Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to convert html page to mhtml

Posted on 2006-11-18
9
Medium Priority
?
423 Views
Last Modified: 2008-01-09
Does anyone have any thoughts on converting html to mhtml?

I have a html page that I need to get converted into mhtml.  This is be
be done through code dynamically.

Thanks :)
0
Comment
Question by:swansonplace
  • 7
  • 2
9 Comments
 
LVL 6

Expert Comment

by:iscode
ID: 17972283
0
 

Author Comment

by:swansonplace
ID: 17972315
Thanks.  I am not up on asp.net, and I am in a bit of a time crunch.  Do
you know of anything in classic asp.
0
 
LVL 6

Expert Comment

by:iscode
ID: 17972356
you cant do it in asp I belive
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 6

Expert Comment

by:iscode
ID: 17972369
If you need a converter exe file to run on you computer
then download from here
http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/h/ht/html2mht/
 
0
 
LVL 6

Expert Comment

by:iscode
ID: 17972480
but you can also do that in your browser save as
0
 
LVL 6

Expert Comment

by:iscode
ID: 17972542
after a thought I think you can do this with CDO CreateMHTMLBody Method
I have not tried it
0
 
LVL 6

Accepted Solution

by:
iscode earned 2000 total points
ID: 17972562

<%
    SMTPServer = "server.mysite.com"  
    cdoURL = "http://schemas.microsoft.com/cdo/configuration/
 
    MHTMLBody = "http://www.mysite.com/yourhtml.html" 
 
    Set cdoM = CreateObject("CDO.Message")  
    Set cdoC = CreateObject("CDO.Configuration")  
    Set cdoF = cdoC.Fields  
 
    With cdoF  
        .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2  
        .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = SMTPServer
      .Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False  
        .Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60  
        .Update  
    End With  
 
    With cdoM  
        Set .Configuration = cdoC  
         
        .CreateMHTMLBody MHTMLBody
        .From = Request("sender")  
        .To = Request("receiver")  
        .Subject = Request("subject")  
        .TextBody = Request("body")
        .Send  
    End With  
 
    Set cdoM = Nothing  
    Set cdoS = Nothing  
    Set cdoF = Nothing  
%>


0
 

Author Comment

by:swansonplace
ID: 17972683
THANK YOU.  I will take a look at it.
0
 
LVL 6

Expert Comment

by:iscode
ID: 17972722
Your welcome swansonplace
glad I could help

iscode
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question