S.a İyi günler. Maile dosya gönderme ile uğraşıyorum zira yapamadım (vb6.0) bi örnek source buldum ama oda pek işe yaramıyor açıkcası bu konu hk yardımcı olur musunuz ?
Bunun üstünden gidiyorudum.
PC : w7 64 bit
Bunun üstünden gidiyorudum.
PC : w7 64 bit
Kod:
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.gmail.com"
Flds.Item(schema & "smtpserverport") = 465
Flds.Item(schema & "smtpauthenticate") = 1
Flds.Item(schema & "sendusername") = "[COLOR="Red"][email protected][/COLOR]"
Flds.Item(schema & "sendpassword") = "[COLOR="Red"]xx123[/COLOR]"
Flds.Item(schema & "smtpusessl") = 1
Flds.Update
With iMsg
.To = "[COLOR="Red"][email protected][/COLOR]"
.From = Text2.Text
.Subject = Text1.Text
.HTMLbOdy = "[COLOR="Red"]c:\xxxr.tx[/COLOR]t"
.Organization = "Mail Organtion"
.ReplyTo = "-"
Set .Configuration = iConf
SendEmailGmail = .Send
MsgBox ("Mesaj Başarıyla iletildi"), vbInformation, "Mail Services"
Son:
End With