Codeunit 4614 "SMTP Message Impl"
Email - SMTP API · System.Email
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 2 connected objects and pages
Email - SMTP API · System.Email · BC29-30 · source at ea08af5e · 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): BooleanGetMessage(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.
- Codeunit 8894 “Email Account” (1 call:
TryParseInternetAddressList → ValidateEmailAddress)
Called by
- Codeunit 4613 “SMTP Message” (8 calls:
AddAttachment → AddAttachment,AddFrom → AddFrom,GetMessage → GetMessage, …)
Recent changes
- 2026-07-24 #9637 [Event Requests] Add integration events across base app and SMTP module (main, BC30, feature)
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.