Sample Script Email Auto
Sample Script Email Auto
COM
'.BCC = ""
.Subject = "This is the Subject line"
.Body = MyBodyText
'.Attachments.Add ("C:Users\Alan\Desktop\Book1.xlsx")
.Send
End With
'Cancels the error trap above
On Error GoTo 0
'Destroy object variables
' (in the reverse order in which we declared them)
Set OutgoingEmail = Nothing
Set OutlookApp = Nothing
End Sub