by Mahesh Vaghasiya (4 Submissions)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 4th October 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Simple mail sender including reference of outlook express
API Declarations
Dim ap As Outlook.Application
Dim mail As Outlook.MailItem
' Microsoft outlook 9.0 object library
' Then copy the given code in the load event of form
Set ap = New Outlook.Application
Set mail = ap.CreateItem(olMailItem)
With mail
mail.To = "Receiver's address"
mail.Subject = "Subject"
mail.BCC = ""
mail.CC = ""
mail.Body = "Your Message"
mail.Send
End With