|
Attribute
|
Syntax Example
|
Description
|
|
objCDO.To
|
objCDO.To = "corinth@enfused.com"
|
The "To" field of the email.
|
|
objCDO.To
|
objCDO.To = "corinth@enfused.com"
|
The "To" field of the email.
|
|
objCDO.From
|
objCDO.From = "mailaddy@domain.com"
|
The "From" field of the email.
|
|
objCDO.CC
|
objCDO.CC = "mail@foo.com"
|
The "CC" or Carbon Copy field of the email.
|
|
objCDO.BCC
|
objCDO.BCC = "hiddenrecipient@foo.com"
|
The "BCC" or Blind Carbon Copy field of the email. (The recipient
can't see the value of this field).
|
|
objCDO.Subject
|
objCDO.Subject = "My Email to You"
|
The Subject of the email.
|
|
objCDO.Body
|
objCDO.Body = "I am the actual message"
|
The actual email message or "body." It can be any string.
|
|
objCDO.BodyFormat
|
objCDO.BodyFormat = {1|0}
|
Using BodyFormat = 1 will send your message as plain
text. Using 0 will send it in HTML.
|
|
objCDO.MailFormat
|
objCDO.MailFormat = {1|0}
|
Using MailFormat = 1 will send your message as plain
text. Using 0 will send in MIME format - which basically
supplements the BodyFormat attribute set.
|
|
objCDO.AttachURL
|
objCDO.AttachURL "D:\IMAGES\TEST.GIF" , "TEST.GIF"
MsgBody = "<img src=TEST.GIF>"
|
Attaches an image with your email. To insert inline, you must use
HTML as your BodyFormat.
|
|
objCDO.AttachFile
|
objCDO.AttachFile ("D:\ATTACHMENTS\MyFile.xls")
|
Attaches the specified file to your email.
|
|
objCDO.Send
|
objCDO.Send
|
Adding .Send to the object name will tell the server
to send the email.
|