Codeunit 8890 Send Email in 24
- App
- System Application
- Namespace
- System.Email
Versions171819202122232425262728latest
Source in 24
src/System Application/App/Email/src/Email/SendEmail.Codeunit.al36 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
namespace System.Email;
codeunit 8890 "Send Email"
{
Access = Internal;
InherentPermissions = X;
InherentEntitlements = X;
TableNo = "Email Message";
trigger OnRun()
var
EmailMessage: Codeunit "Email Message";
begin
EmailMessage.Get(Rec.Id);
EmailConnector.Send(EmailMessage, AccountId);
end;
procedure SetConnector(NewEmailConnector: Interface "Email Connector")
begin
EmailConnector := NewEmailConnector;
end;
procedure SetAccount(NewAccountId: Guid)
begin
AccountId := NewAccountId;
end;
var
EmailConnector: Interface "Email Connector";
AccountId: Guid;
}Procedures, 2
| Name | Parameters | Returns | Access | Obsolete |
|---|---|---|---|---|
| SetConnector | (Interface Email Connector) | public | - | |
| SetAccount | (Guid) | public | - |