Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Controllers.SMTPEmailController.SendTestEmail Method

Sends a test email. Used in conjunction with client-side code and the SmtpServer template.

Class: YetaWF.Core.Controllers.SMTPEmailController
Namespace: YetaWF.Core.Controllers
Assembly: YetaWF.Core

Syntax

public Task<ActionResult> SendTestEmail(
    string server,
    int port,
    AuthEnum authentication,
    string username,
    string password,
    bool ssl );

Parameters

server

The email server name.

port

The email server port number.

authentication

Type of email server authentication.

username

The user name used for authentication with the email server.

password

The password used for authentication with the email server.

ssl

true if SSL is required when communicating with the email server, false otherwise.

Return Value

An action result.

Remarks

The test email is sent to the email address of the currently logged on user requesting the test email.

See Also YetaWF.Core.Controllers.SMTPEmailController ClassYetaWF.Core Overview