CTI32 Class Library

cti.SendStatsReport Method 

Send out the nightly stats report

[Visual Basic]
Public Shared Function SendStatsReport( _
   ByVal Year As Integer, _
   ByVal Month As Integer, _
   ByVal Day As Integer, _
   ByVal send_to As String, _
   ByVal include_attachment As Integer, _
   ByVal mail_server As String, _
   ByVal mail_from As String _
) As Integer
[C#]
public static int SendStatsReport(
   int Year,
   int Month,
   int Day,
   string send_to,
   int include_attachment,
   string mail_server,
   string mail_from
);

Parameters

Year
Year that it is for.
Month
Month that it is for.
Day
Day it is for.
send_to
E-mail addresses (comma separated) of who should receive report.
include_attachment
Include stats file as an attachment. 1=Yes 0=No
mail_server
Which SMTP server to bounce it off of.
mail_from
Email address of who sent this message

Return Value

0=successful. -1=Failure

See Also

cti Class | CTI32NetLib Namespace