AddSMTPServer

<< Click to Display Table of Contents >>

Navigation:  Drivers API > IPXCPrinter Interface > Functions >

AddSMTPServer


 

PRO SDK Icon AddSMTPServer

 


 

The AddSMTPServer function is used to add the parameters of a defined SMTP server, which can then be used to email files. See Email for further information. Please note that declarations and parameters are case-sensitive:

 

 

Declaration

 

C#

 

void AddSMTPServer(

string sName,

int nPort,

int bNeedAuth,

string sUser,

string sPassword,

long bSecureConnection);

 

C++

 

HRESULT AddSMTPServer(

[inBSTR sName,

[inlong nPort,

[inlong bNeedAuth,

[inBSTR sUser,

[inBSTR sPassword,

[inlong bSecureConnection);

 

VB

 

Sub AddSMTPServer(

sName As String,

nPort As Long,

bNeedAuth As Long,

sUser As String,

sPassword As String,

bSecureConnection As Long)

 

Parameters

 

sName

Specifies the name/IP address of the SMTP server.

 

nPort

Specifies the port number used to communicate with the SMTP server.

 

bNeedAuth

If this parameter is set to True then it determines that the server requires authorization in order to send emails.

 

sUser

Specifies the username required for server authorization. If bNeedAuth is set to False then this parameter is not used.

 

sPassword

Specifies the password required to access the server. If bNeedAuth is set to False then this parameter is not used.

 

bSecureConnection

If this parameter is set to True then a secure connection must be used to access the server. If it is set to False then a secure connection is not required.

 

Return Values

 

If the function fails then the return value is an error code.

 

If the function succeeds then the return value is S_OK.