- Home
·
- Internet/HTML
·
- Sending Email (SMTP)from VB6. you can add this code in your project and connect to your DB and mana
Sending Email (SMTP)from VB6. you can add this code in your project and connect to your DB and mana
Sending Email (SMTP)from VB6. you can add this code in your project and connect to your DB and manage TO,CC,BCC, Text Body or HTML Body for
Rate Sending Email (SMTP)from VB6. you can add this code in your project and connect to your DB and mana
(1(1 Vote))
'' Email to user (SMTP)
Set objEmail = CreateObject("CDO.Message")
objEmail.From = "Test"
objEmail.To = [email protected]
objEmail.Cc = [email protected]
objEmail.bcc = [email protected]
objEmail.Subject = "Test Message"
objEmail.Textbody = "Hi, This is a test mail"
'objEmail.AddAttachment "C:\Scripts\Output.txt"
objEmail.configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/Sendusing") = 2
objEmail.configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = IP or hostname of your email server
objEmail.configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.configuration.Fields.Update
objEmail.Send
End Sub
Sending Email (SMTP)from VB6. you can add this code in your project and connect to your DB and mana Comments
No comments yet — be the first to post one!
Post a Comment