Specify SMTP server to be used
Namespace: DotNetNuke.Services.MailAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public bool SetSMTPServer( string smtpServer, string smtpAuthentication, string smtpUsername, string smtpPassword, bool smtpEnableSSL ) |
Visual Basic |
---|
Public Function SetSMTPServer ( smtpServer As String, smtpAuthentication As String, smtpUsername As String, smtpPassword As String, smtpEnableSSL As Boolean ) As Boolean |
Parameters
- smtpServer
- Type: System..::..String
name of the SMTP server
- smtpAuthentication
- Type: System..::..String
authentication string (0: anonymous, 1: basic, 2: NTLM)
- smtpUsername
- Type: System..::..String
username to log in SMTP server
- smtpPassword
- Type: System..::..String
password to log in SMTP server
- smtpEnableSSL
- Type: System..::..Boolean
SSL used to connect tp SMTP server
Return Value
always true
Remarks
if not called, values will be taken from host settings