![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi
How can I fill a new email with content from an html file? Thanks Regards |
Ads |
#2
|
|||
|
|||
![]()
John, you wrote on Sat, 14 Jan 2006 23:04:22 -0000:
How can I fill a new email with content from an html file? Create a new html-mail. Then go to Insert | File. Select the html-file and click on the little arrow right hand the "Insert" Button and select "Insert as text". -- Best Regards Christian Goeller |
#3
|
|||
|
|||
![]()
Am Sat, 14 Jan 2006 23:04:22 -0000 schrieb John:
You need to read the file´s content first. Sample: Public Function ReadFile(sPath As String) As String On Error GoTo AUSGANG Dim lFileNr As Long Dim sText As String lFileNr = FreeFile Open sPath For Binary As #lFileNr sText = Space$(LOF(lFileNr)) Get #lFileNr, , sText AUSGANG: If lFileNr Then Close #lFileNr If Err.Number Then Err.Raise &H800A0000 Or Err.Number, _ Err.Source, Err.Description, Err.HelpFile, Err.HelpContext ReadFile = sText End Function Simply add the content then to the mail´s HTMLBody property. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook Hi How can I fill a new email with content from an html file? Thanks Regards |
#4
|
|||
|
|||
![]()
John wrote:
How can I fill a new email with content from an html file? See if this helps: http://www.slipstick.com/mail1/html.htm -- Brian Tillman |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook 2003 will not print an HTML message | Stan Kay | Outlook - General Queries | 8 | January 14th 06 12:07 AM |
Filtering Rule in Outlook2003 : how to redirect acknowledgements into ad hoc directory (sorry for the previous msg in html) | [Ben] | Outlook - General Queries | 1 | January 12th 06 11:03 AM |