strHTML = ("Failure Ycode: "&a&" attempted an SAP login that failed. The following error resulted: "&b&" Please re-execute after test userId is available for use.") strSubject = ("SAP Test UserId Login Failure; QEC: ") Set Outlook = CreateObject("Outlook.Application") 'Send failure email here. Dim Message 'As Outlook.MailItem Set Message = Outlook.CreateItem(0) With Message .Subject = strSubject .HTMLBody = strHTML .To = ("email@example.com") '.To = ("firstname.lastname@example.org;email@example.com") .Send End With
From novice to tech pro — start learning today.