Previous Topic

Next Topic

Inhoudsopgave

Book Index

EMail Object

Description

Allows you to send mail messages.

Properties, Procedures and Functions

Function Procedure Send

Property Property Text: String (R/W)

Property Property Subject: String (R/W)

Property Property Recipient: String (R/W)

Property Property CC: String (R/W)

Property Property BCC: String (R/W)

Property Property Attachment: String (R/W)

Property Property Concept: Boolean String (R/W)

Example

Sub Main()

Dim EMail

Dim S

Dim Recipients

' Creates an e-mail object

Set EMail = application.Email()

' Specifies the subject line

EMail.Subject = "A test e-mail"

S = ""

S = S + " Put your e-mail text here" + vbCrLf

S = S + " You can use several lines" + vbCrLf

' Places the string in the text property

EMail.Text = S

Recipients = "Info@isah.com" + vbCrLf

' Specifies to which recipients the e-mail must be sent

EMail.Recipient = Recipients

' Send

Email.Send

MsgBox "E-mail sent"

End Sub