From: PAkerly on 4 Jan 2010 12:02 Is it possible to make multiline text in an email message using VB Script? Here is what I am doing now... Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.GetFolder(strFolder) Set objMessage = CreateObject("CDO.Message") objMessage.Subject = "Files being emailed" objMessage.From = "me(a)server.com" objMessage.To = "me(a)server.com" objMessage.TextBody = "This is some text. I want this on line 1. I want other text on other lines"
From: Pegasus [MVP] on 4 Jan 2010 13:01 "PAkerly" <pakerly(a)gmail.com> said this in news item news:4401855c-32cb-4c36-8a20-ed08246c6cf0(a)u37g2000vbc.googlegroups.com... > Is it possible to make multiline text in an email message using VB > Script? > > Here is what I am doing now... > > Set objFSO = CreateObject("Scripting.FileSystemObject") > Set objFolder = objFSO.GetFolder(strFolder) > > Set objMessage = CreateObject("CDO.Message") > objMessage.Subject = "Files being emailed" > objMessage.From = "me(a)server.com" > objMessage.To = "me(a)server.com" > objMessage.TextBody = "This is some text. I want this on line 1. I > want other text on other lines" Separate the lines with vbCRLF or with vbLF.
|
Pages: 1 Prev: How to get the path of the vbs files Next: Passing Arguments |