Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Agent Namespace / Packager Class / SendEmailAsync Method / SendEmailAsync(SessionCriteria,Boolean,String,String,String,String) Method
The set of match rules to apply to sessions to determine what to send.
True to have every included session marked as read upon successful completion.
Optional. A subject line for the email. If left empty a subject line will be generated.
Optional. The email address the package will appear to come from. If empty the destination address will be used.
Optional. The email address to send the package to. If empty the application configuration value will be used.
The full DNS name of the SMTP server to use to relay the mail message.

SendEmailAsync(SessionCriteria,Boolean,String,String,String,String) Method
Asynchronously send the completed package overriding the server connection information stored in the configuration.
Syntax
'Declaration
 
Public Overloads Sub SendEmailAsync( _
   ByVal sessions As SessionCriteria, _
   ByVal markAsRead As Boolean, _
   ByVal emailSubject As String, _
   ByVal fromAddress As String, _
   ByVal destinationAddress As String, _
   ByVal emailServer As String _
) 
 

Parameters

sessions
The set of match rules to apply to sessions to determine what to send.
markAsRead
True to have every included session marked as read upon successful completion.
emailSubject
Optional. A subject line for the email. If left empty a subject line will be generated.
fromAddress
Optional. The email address the package will appear to come from. If empty the destination address will be used.
destinationAddress
Optional. The email address to send the package to. If empty the application configuration value will be used.
emailServer
The full DNS name of the SMTP server to use to relay the mail message.
Remarks

Multiple criteria can be specified and all matching sessions will be sent. Sessions that match more than one item will be sent only once. All criteria are considered inclusive, adding the sessions they match.

The EndSend event will be raised when the send operation completes.

This method will always send without SSL and on port 25 regardless of the configuration of the application.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also