Can someone explain to me how can i send e mail to a single address written in a textbox.

I found this example but it doesnt work for me. I get an error saying Object required. What do i need to do. Could someone please write the whole code to send an e-mail massage (with all assignments and declarations). I dont know what class must i assign to object to work with following commands .

Code:
MAPISession1.SignOn
MAPIMessages1.SessionID = MAPISession1.SessionID
'Compose new message
MAPIMessages1.Compose
'Address message
MAPIMessages1.RecipDisplayName = "Name"
MAPIMessages1.RecipAddress = [email protected]
' Resolve recipient name
MAPIMessages1.AddressResolveUI = True
MAPIMessages1.ResolveName
'Create the message
MAPIMessages1.MsgSubject = "Subject"
MAPIMessages1.MsgNoteText = "Message text"
'Add attachment
MAPIMessages1.AttachmentPathName = "file path"
'Send the message
MAPIMessages1.Send False
MAPISession1.SignOff
For example, i want when i click on button (Command1) to send an e mail to a certain address. Do i need SMTP Host address and if i do, i would need address that i can use. I would be grateful if someone can provide an SMTP adress too .