VBA Code:
Sub Mail_workbook_Outlook_1()
Dim UserInputToEmail As String
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
UserInputToEmail = Application.InputBox("Enter your email id")
On Error Resume Next
With OutMail
.to = UserInputToEmail
.CC = ""
.BCC = ""
.Subject = "This is the Subject line"
.Body = "Hi there"
.Attachments.Add ActiveWorkbook.FullName
.Send
Application.Wait (Now + TimeValue("0:00:15"))
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
End Sub