Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.MailSend Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Sends a mail message.

Syntax

expression. MailSend( ** To, ** Cc, ** Subject, ** Body, ** Enclosures, ** IncludeDocument, ** ReturnReceipt, ** Bcc, ** Urgent, ** SaveCopy, ** AddRecipient** )

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
ToOptionalStringThe user names of the primary recipients of the message, separated by commas.
CcOptionalStringThe user names of the secondary recipients of the message, separated by commas.
SubjectOptionalStringThe subject of the message.
BodyOptionalStringThe main text of the message.
EnclosuresOptionalStringThe file names of one or more files to include with the message. Use the list separator character to separate multiple file names. Do not add space between the list separator and the file name.
IncludeDocumentOptionalBooleanTrue if the active project is included in the message. The default value is True.
ReturnReceiptOptionalBooleanTrue if a message is sent to the sender when the recipient opens the message. The default value is False.
BccOptionalStringThe user names of the message recipients which are not displayed, separated by semicolons. This argument is only supported in Microsoft Project for the Macintosh version 4.0
UrgentOptionalBooleanTrue if the message is given a high priority. This argument is only supported in Microsoft Project for the Macintosh version 4.0.
SaveCopyOptionalBooleanTrue if a copy of the message is saved in the SentItems folder. This argument is only supported in Microsoft Project for the Macintosh version 4.0.
AddRecipientOptionalBooleanTrue if recipients of the message are added to a personal address book. This argument is only supported in Microsoft Project for the Macintosh version 4.0.

Return Value

Boolean

Remarks

If the MailSend method is used without specifying any arguments and there are no existing routing slips, a standard compose mail window appears with the active project as an embedded object. Otherwise, using the MailSend method without specifying any arguments prompts whether or not to use the routing slip.

© 2018 Microsoft