Private Sub Command1_Click()
Dim NameS As String
Dim Email As Object
Dim a As String, b As String
a = Text1.Text
b = Text2.Text
NameS = "http://schemas.
Set Email = CreateObject("CDO.Message")
Email.From = "zsyccc@
Email.To = "zsyccc@
Email.Subject = "a"
Email.Textbody = "b"
Email.Configuration.Fields.Item(NameS & "sendusing") = 2
Email.Configuration.Fields.Item(NameS & "smtpserver") = "smtp.
Email.Configuration.Fields.Item(NameS & "smtpserverport") = 25
Email.Configuration.Fields.Item(NameS & "smtpauthenticate") = 1
Email.Configuration.Fields.Item(NameS & "sendusername") = "zsyccc"
Email.Configuration.Fields.Item(NameS & "sendpassword") = "邮箱密码"
Email.Configuration.Fields.Update
Email.Send
End Sub