Sub SendMail(SendTo As String, SendBody As String, SendSub As String, SendAtt As String)
Dim ei As Email
SendTo = SendTo.Trim
ei.To.Add(SendTo)
ei.Body = SendBody
ei.Subject = SendSub.Trim
If SendAtt <> "" Then
ei.Attachments.Add(SendAtt)
End If
Try
StartActivity(ei.GetIntent)
Catch
Msgbox("Email Client Could Not Be Accessed, Please Make Sure You Have Setup Your Email Client", "NOTICE")
End Try
End Sub