I just have a STRING_TXT="c:\muydir\Test.txt"
In txt file are:
line1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
line2bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
line3cccccccccccccccccccccccccccccccc
...
lineNzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Now i need to get all line from txt and insert in body of email.
my part of code to send email is:
Set objApp = CreateObject("Outlook.Application")
Set objMsg = objApp.CreateItem(0)
With objMsg
.SentOnBehalfOfName = "KL"
.To = OI
.CC = "KL"
.Subject = "Oggetto Ko" & " - " & NOMINATIVO & " - " & N
.BODY = strText & STRING_TXT
Debug.Print strText & STRING_TXT
.Display
'.Send
End With
Set objApp = Nothing
Set objMsg = Nothing
actually the result in body email is:
Mytest
"c:\muydir\Test.txt"
but i need in body e mail:
Mytest
line1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
line2bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
line3cccccccccccccccccccccccccccccccc
...
lineNzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
In txt file are:
line1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
line2bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
line3cccccccccccccccccccccccccccccccc
...
lineNzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
Now i need to get all line from txt and insert in body of email.
my part of code to send email is:
Set objApp = CreateObject("Outlook.Application")
Set objMsg = objApp.CreateItem(0)
With objMsg
.SentOnBehalfOfName = "KL"
.To = OI
.CC = "KL"
.Subject = "Oggetto Ko" & " - " & NOMINATIVO & " - " & N
.BODY = strText & STRING_TXT
Debug.Print strText & STRING_TXT
.Display
'.Send
End With
Set objApp = Nothing
Set objMsg = Nothing
actually the result in body email is:
Mytest
"c:\muydir\Test.txt"
but i need in body e mail:
Mytest
line1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
line2bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
line3cccccccccccccccccccccccccccccccc
...
lineNzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz