Private Sub SendToE_Click()
On Error GoTo Err_SendToE_Click
Dim stDocName As String
Dim stAddE As String
stDocName = "NewIndividual"
stAddE = Me.EmailAddress
tryTitle = Me.Title
tryFirst = Me.FirstName
tryLast = Me.LastName
DoCmd.OpenReport stDocName, acPreview, "IndividualPrintout"
DoCmd.SendObject acSendReport, _
stDocName, acFormatPDF, stAddE, , , _
"Automatic Booking Confirmation", _
"Dear " & tryTitle & " " & tryLast & Chr(13) & Chr(13) & "Thank you for your booking, if the attachment details are correct, could you please confirm by replying to this email" & Chr(13) & Chr(13) & "Testing", _
False
Exit_SendToE_Click:
Exit Sub
Err_SendToE_Click:
MsgBox Err.Description
Resume Exit_SendToE_Click
End Sub