Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to send HTML page via Outlook
Message
General information
Forum:
Politics
Category:
Other
Miscellaneous
Thread ID:
01020043
Message ID:
01020104
Views:
22
Must be Word's version issue. There is another around it if you have CDOsys.dll installed on your computer. Here is an example on how to create a MHTML document with an HTML page using CDO. The following will only create the document. But if you want to continue using CDO to send your document, see sample #2
Local lcFileName,lcStr && Variables locales
Declare Integer ShellExecute In "Shell32.dll" ;
INTEGER HWnd, ;
STRING lpVerb, ;
STRING lpFile, ;
STRING lpParameters, ;
STRING lpDirectory, ;
LONG nShowCmd
lcFileName = Sys(2015)+'.mht' && Nom du document final
oMSG = Createobject("CDO.Message")  
oMSG.CreateMHTMLBody("http://www.microsoft.com")  ML
lcStr = oMSG.getstream 
lcStr.SaveToFile(lcFileName,1) 
ShellExecute(0,"Open",lcFileName,"","",0)
Sample #2
oMSG = CREATEOBJECT("CDO.Message")
oMSG.Sender = 'GateKeepers'
oMsg.cc = 'me@suntelecom.net'
oMsg.to = "you@suntelecom.net;yourboss@suntelecom.net;hiswife@suntelecom.net"
oMSG.Subject = "Minutes recorded on HK et Gatekeeper Chart for yesterday by customer"
oMSG.CreateMHTMLBody('file:\\c:\mthtml.htm')
oMSG.SEND()
>Sounds very logical. But when I try to save my document from Word I don't have an option of MHTML. I have option to save as web page (*.html). It must be because I have Word 2000 (copyright 1999) and maybe this feature was not there yet.
>
>Thank you for your suggestions and help.
>
>>Design (or load) your document in Word and use Save as and change to MHTML. MHTL allows you to include pictures and text in one single document without bieng worried about pictures not showing up at the other end.
>>
>>
>>>>All of the recipients, or just some? You may want to try a MHTML document in the body of the e-mail.
>>>>
>>>>
>>>
>>>I only tried this with myself, so there is only one recipient. But I don't know what is MHTML? I don't seem to see it in my Outlook.
>>>
>>>Please tell me more. Thank you.
>>>
>>>
>>>>
>>>>>I created a little html page, a newsletter. I want to send it to a bunch of people using Outlook 2002. The way I tried it is by copying and pasting the entire HTML document to the body of the message, then setting the message format to be HTML. But the recipient (I tested on myself) sees the HTML source code instead of rendered page.
>>>>>
>>>>>What am I missing?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform