NameSpace.SendAndReceive method (Outlook)
Initiates immediate delivery of all undelivered messages submitted in the current session, and immediate receipt of mail for all accounts in the current profile.
Syntax
expression. SendAndReceive
( _showProgressDialog_
)
expression A variable that represents a NameSpace object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
showProgressDialog | Required | Boolean | Indicates whether the Outlook Send/Receive Progress dialog box should be displayed, regardless of user settings. |
Remarks
Calling the SendAndReceive method is asynchronous.
SendAndReceive provides the programmatic equivalent to the Send/Receive All command that is available when you click Tools and then Send/Receive.
If you don't need to synchronize all objects, you can use the SyncObjects collection object to select specific objects. For more information, see NameSpace.SyncObjects.
All accounts defined in the current profile are used in Send/Receive All. If an online connection is required to perform the Send/Receive All, the connection is made according to user preferences.
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.