Tutaj być the zmodyfikowany pismo. Ty właśnie potrzebować the data w the pismo.
OPCJA WyraźnyCiemnawy objExcelCiemnawy objWorkbookCiemnawy CurDateCiemnawy objEMailCiemnawy excelDateCiemnawy strDateCiemnawy strEMailUstalony objExcel = CreateObject ("Excel.Application")Ustalony objWorkbook = objExcel.Workbooks.Open _ (" C:\Tpxtracker.xls ")Ciemnawy StartDateStartDate = CDate ("01/14/2010")Ciemnawy EndDateEndDate = CDate ("01/31/2010")Ciemnawy intRowintRow = 2CurDate = Data () 'Wscript.Echo "Data Data: " & CurDateDo objExcel.Cells (intRow, 9).Value = "" 'Wscript.Echo "Email: " & objExcel.Cells (intRow, 6).Value 'Wscript.Echo "Data: " & objExcel.Cells (intRow, 9).Value excelDate = objExcel.Cells (intRow, 9).Value strEMail = objExcel.Cells (intRow, 6).Value Jeżeli StartDate <>
= excelDate wtedy Ustalony objEmail = CreateObject ("CDO.Message") objEmail.From = "[email protected]" objEmail.To = strEMail objEmail.Subject = "Powitanie" objEmail.HTMLBody = "Powitanie the Firma." objEmail.Configuration.Fields.Item _ (" http://schemas.microsoft.com/cdo/configuration/sendusing ") = 2 objEmail.Configuration.Fields.Item _ (" http://schemas.microsoft.com/cdo/configuration/smtpserver ") = _ "smtpservername" objEmail.Configuration.Fields.Item _ (" http://schemas.microsoft.com/cdo/configuration/smtpserverport ") = 25 objEmail.Configuration.Fields.Update objEmail.Send Wscript.echo "Poczta wysyłać" & strEMail Kończyć Jeżeli intRow = intRow + (1)PętlaobjExcel.Quit