codeunitPlatform, DevOps & Performanceofficial - Microsoftderived - from the source, no model text

Codeunit 4614 "SMTP Message Impl"

Email - SMTP API · System.Email

Across versions

  1. BC23-28not present
  2. BC29-30present

Neighbourhood 2 connected objects and pages

Codeunit 4613 "SMTP Message" (calls, 8 links)SMTP MessageCodeunit 8894 "Email Account" (calls)Email Account

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

Email - SMTP API · System.Email · BC29-30 · source at 4e6a307c · facts from BC29

Properties

Property Value
Access Internal

Procedures

  • Initialize()
  • AddFrom(FromName: Text; FromAddress: Text): Adds the mailbox that this email is being sent from.
  • AddFrom(FromName: Text; FromAddress: Text; EmailMessageId: Guid): Adds the mailbox that this email is being sent from.
  • SetToRecipients(Recipients: List of [Text]): Adds the recipients that this email is being sent to.
  • SetCCRecipients(Recipients: List of [Text]): Adds the cc recipients that this email is being sent to.
  • SetBCCRecipients(Recipients: List of [Text]): Adds the bcc recipients that this email is being sent to.
  • SetSubject(Subject: Text): Adds the subject of this email.
  • SetBody(Body: Text; HtmlFormatted: Boolean)
  • AddAttachment(AttachmentInStream: InStream; AttachmentName: Text): Boolean
  • GetMessage(var MimeMessage: DotNet MimeMessage)
  • TryPrepareMessage() (internal): Builds the underlying MimeMessage and calls Prepare() on it — the same code path that MailKit’s SmtpClient.Send() takes internally. Exposed for tests so they can verify the message can be serialized without pulling MimeKit into the test library.

Plus 8 local procedures.

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.

Called by

Recent changes

No source states these links: they share an object, a model read them, or a person found the same subject.

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

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: "SMTP Message Impl"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources