Visual Basic 6 How To Send Mail Codes
if you have any issues, please comment this post. i will reply as soon possible.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 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") = Text1.Text Flds.Item(schema & "sendpassword") = Text2.Text Flds.Item(schema & "smtpusessl") = 1 Flds.Update With iMsg .To = Text3.Text .From = Text4.Text .Subject = Text5.Text .HTMLbOdy = Text6.Text .Organization = "Mail Organtion" .ReplyTo = "-" Set .Configuration = iConf SendEmailGmail = .Send End With |