Codeunit 397 "Mail"
Base Application · System.Email
Across versions
- BC23-24present
- BC255 procedures removed
- BC26-30unchanged
Neighbourhood 5 connected objects and pages
Base Application · System.Email · BC23-30 · source at ea08af5e · facts from BC29
Events published
OnGetEmailAddressFromActiveDirectory(var Email: Text; var Handled: Boolean)(integration)OnBeforeCreateMessage(var ToAddresses: Text; var CcAddresses: Text; var BccAddresses: Text; var Subject: Text; var Body: Text; ShowNewMailDialogOnSend: Boolean; RunModal: Boolean; var IsHandled: Boolean)(integration)OnBeforeCreateAndSendMessage(ToAddresses: Text; CcAddresses: Text; BccAddresses: Text; Subject: Text; Body: Text; AttachFilename: Text; ShowNewMailDialogOnSend: Boolean; var MailSent: Boolean; var IsHandled: Boolean)(integration)OnCreateAndSendMessageOnAfterAttachFile()(integration)OnCreateMessageOnBeforeClearAttachmentFileNames(var IsHandled: Boolean)(integration)OnCollectCurrentUserEmailAddressesOnBeforeCheckIsSaaS(var TempNameValueBuffer: Record "Name/Value Buffer" temporary)(integration)
Procedures
OpenNewMessage(ToName: Text)NewMessageAsync(ToAddresses: Text; CcAddresses: Text; BccAddresses: Text; Subject: Text; Body: Text; AttachFilename: Text; ShowNewMailDialogOnSend: Boolean): BooleanNewMessage(ToAddresses: Text; CcAddresses: Text; BccAddresses: Text; Subject: Text; Body: Text; AttachFilename: Text; ShowNewMailDialogOnSend: Boolean): BooleanCreateMessage(ToAddresses: Text; CcAddresses: Text; BccAddresses: Text; Subject: Text; Body: Text; ShowNewMailDialogOnSend: Boolean; RunModal: Boolean)CollectAddresses(ContactNo: Code[20]; var ContactThrough: Record "Communication Method"; ShowAddresses: Boolean): Text[260]ValidateEmail(var ContactThrough: Record "Communication Method"; EMailToValidate: Text): BooleanTryInitializeOutlook(): BooleanCollectCurrentUserEmailAddresses(var TempNameValueBuffer: Record "Name/Value Buffer" temporary)FormatTextForHtml(Text: Text): Text
Plus 11 local procedures.
Triggers
OnRun
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 4030 “Client Type Management” (1 call:
GetEmailAddressFromActiveDirectory → GetCurrentClientType) - Codeunit 457 “Environment Information” (1 call:
CollectCurrentUserEmailAddresses → IsSaaS) - Codeunit 8893 “Email Scenario” (1 call:
GetDefaultScenarioEmailAddress → GetEmailAccount) - Page 5145 “Contact Through” (1 call:
CollectAddresses → (object))
Called by
- Table 5080 “To-do” (1 call:
ProcessAttendeeAppointment → NewMessage)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Mail"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.