Solved

How to convert html page to mhtml

Posted on 2006-11-18
9
397 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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 500 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
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/…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

828 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