Does this give you any assistance?
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim msg As MailItem
Dim strGreeting
Dim hrs As Long
Dim mins As Long
Dim lngTime As Long
hrs = Val(Left(Format(Time, "HH:mm"), 2))
mins = Val(Right(Format(Time, "HH:mm"), 2))
lngTime = 60 * hrs + mins
Select Case lngTime
Case Is <= 720
strGreeting = "Good Morning"
Case Is > 960
strGreeting = "Good Evening"
Case Else
strGreeting = "Good Afternoon"
End Select
Set msg = Application.ActiveInspector.CurrentItem
msg.Body = strGreeting & vbCr & msg.Body
If InStr(1, msg.Body, "attach", vbTextCompare) > 0 Then
If msg.Attachments.Count = 0 Then
If MsgBox("There's no attachment, send anyway?", vbYesNo) = vbNo then
Cancel = True
End If
End If
End If
End Sub