Danny
Mon Dec 18 14:25:37 CST 2006
Never mind, I figured it out.
Thanks for all your help.
"Danny Sanders" <DSanders@NOSPAMciber.com> wrote in message
news:uKKi6NtIHHA.2632@TK2MSFTNGP06.phx.gbl...
> Thanks again Ayush for your help,
>
> I've got everything working. It sends the link, the number of files in the
> folder and the name of the files.
> The only thing is the "<br>" don't seem to be working.
>
> Here is the output:
>
> Today's DFSR health reports are ready for review in \\Link_to _folder
> <br><br> There are 10 files. File Names :
> FPT1-DETR-12-18-2006-0900AM.html<br>FPT1-DETR-12-18-2006-0900AM.xml<br>FPT1-MINN-12-18-2006-0900AM.html<br>FPT1-MINN-12-18-2006-0900AM.xml<br>FPT1-RONY-12-18-2006-0900AM.html<br>FPT1-RONY-12-18-2006-0900AM.xml<br>FPT1-SANM-12-18-2006-0900AM.html<br>FPT1-SANM-12-18-2006-0900AM.xml<br>FPT1-SEAT-12-18-2006-0900AM.html<br>FPT1-SEAT-12-18-2006-0900AM.xml<br>
>
>
>
> How to not show the "<br>" and have it actually break the line there?
>
>
> Thanks
>
>
>
> "Ayush" <"ayushmaan.j[aatt]gmail.com"> wrote in message
> news:%23BR9OXsIHHA.960@TK2MSFTNGP04.phx.gbl...
>> Replied to [Danny Sanders]s message :
>>> Thanks Ayush,
>>>
>>> Here is the "sanitized" vbs file that does the emailing:
>> ::snipped::
>>
>> '- - - - - - - - - - - - - - - - -
>> FolderPath="C:\Windows"
>>
>> Set oSF = CreateObject("Scripting.FileSYStemOBJect")
>> Set foldr=oSF.GetFolder(folderPath)
>> Set fils =foldr.Files
>> FName="";FCount=0
>> For Each fL in fils
>> FCount=FCount+1
>> FName=FName & fL.Name & "<br>"
>> Next
>>
>> Set objEmail = CreateObject("CDO.Message")
>> objEmail.From = "Someone@ciber.com"
>> objEmail.To = "Someone@ciber.com"
>> objEmail.Subject = "The DFSR health reports are ready"
>> objEmail.Textbody = "Today's DFSR health reports are ready for review in
>> \\link_to_location_of_files <br><br> There are " & FCount & " files.
>> File Names : <br>" & FName
>> objEmail.Configuration.Fields.Item _
>> ("
http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
>> objEmail.Configuration.Fields.Item _
>> ("
http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
>> "My email server.ciber.cbr.inc"
>> objEmail.Configuration.Fields.Item _
>> ("
http://schemas.microsoft.com/cdo/configuration/smtpserverport") =
>> 25
>> objEmail.Configuration.Fields.Update
>> objEmail.Send
>>
>>
>> '- - - - - - - - - - - - - - - - - -
>> Change the FolderPath to the path of the folder....
>>
>> From your script, i changed the Textbody and added some <br> (for new
>> line, works in HTML) and variables ( file names and number of files) to
>> it.
>>
>>
>> ? Ayush [ Good :-) Luck ]
>> -------------
>> Search - www.Google.com | Wikipedia -
http://en.wikipedia.org
>> Snip your long urls -
http://snipurl.com/
>> -------------
>
>