Many Thanks
skandar
Sub Send_weather()
Send_Message "http://www.msn.com", "ska...@zetacontrols.co.uk"
End Sub
Private Sub Send_Message(xURL, email)
Dim objIE As Object
Dim objOL As New Outlook.Application
Dim objMail As MailItem
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate (xURL)
Do While objIE.Busy
Loop
Do While objIE.Document.ReadyState <> "complete"
Loop
Set objOL = New Outlook.Application
Set objMail = objOL.CreateItem(olMailItem)
objMail.To = email
objMail.Subject = "From Street Map - " &
objIE.LocationName
objMail.HTMLBody = "<HTML></HTML>" &
objIE.Document.Body.outerHTML
objMail.Send
Set objMail = Nothing
Set objOL = Nothing
Set objIE = Nothing
End Sub
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
--
Eric Legault, MCSD
ADAPSYS - http://www.adapsys.ca
"skandar taj" <ska...@zetacontrols.co.uk> wrote in message
news:#XA48OR0CHA.2488@TK2MSFTNGP12...
objMail.HTMLBody = "<HTML>" & _
objIE.Document.Body.outerHTML & "</HTML>"
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming: Jumpstart for
Administrators, Power Users, and Developers
Outlook and Exchange solutions at http://www.slipstick.com
"skandar taj" <ska...@zetacontrols.co.uk> wrote in message
news:#XA48OR0CHA.2488@TK2MSFTNGP12...