'Forma 1 Timer Intervali 100 Olsun Enabled'i False
'4'te Text Ekleyin ilki gönderilecek kişi 2cisi kimden '3cüsü 'konu 4cüsü mesaj
'1 tanede command
Private Sub Command1_Click()
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
Dim iMsg, iConf, Flds
On Error GoTo Son
Set iMsg = CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
schema = "http://schemas.microsoft.com/cdo/configuration/"
Flds.Item(schema & "sendusing") = 2
Flds.Item(schema & "smtpserver") = "smtp.live.com"
Flds.Item(schema & "smtpserverport") = 465
Flds.Item(schema & "smtpauthenticate") = 1
Flds.Item(schema & "smtpusessl") = 1
Flds.Update
With iMsg
.To = "text1.text"
.From = "text2.text"
.Subject = "text3.text"
.HTMLbOdy = "text4.text"
.Organization = "Mail Organtion"
.ReplyTo = "1"
Set .Configuration = iConf
SendEmailGmail = .Send
Son:
End With
End Sub
|