by Jyothishprasad (1 Submission)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 10th January 2009
Date Added: Mon 8th February 2021
Rating:
(1 Votes)
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
'' 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
No comments have been posted about Sending Email (SMTP)from VB6. you can add this code in your project and connect to your DB and mana. Why not be the first to post a comment about Sending Email (SMTP)from VB6. you can add this code in your project and connect to your DB and mana.