VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Creates an Outlook Mail Item & displays it redy for submission

by Phil Walker (1 Submission)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 20th August 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Creates an Outlook Mail Item & displays it redy for submission

Rate Creates an Outlook Mail Item & displays it redy for submission



Private Sub SendMail_Click()

Dim ol As Outlook.MailItem
Set ol = CreateItem(olMailItem)

With ol
.To = "[email protected]"
.Subject = "Test Subject"

' Either .body 'For text/Rich Text
' Or
' .HTMLBody ' For HTML Mail Message
.HTMLBody = ""
.Attachments.Add ("(Full Path to file to insert)")
' Display the normal outlook submit form
.Display
End With

End Sub


Download this snippet    Add to My Saved Code

Creates an Outlook Mail Item & displays it redy for submission Comments

No comments have been posted about Creates an Outlook Mail Item & displays it redy for submission. Why not be the first to post a comment about Creates an Outlook Mail Item & displays it redy for submission.

Post your comment

Subject:
Message:
0/1000 characters