Codeunit 9520 Mail Management

Base Application, System.EMail

15 obsolete

Procedures 8

GetLastGraphError(): Textgone after 23
Pending, tag 21.0, obsolete since 21: Microsoft Invoicing has been discontinued.
SetHideSMTPError(NewHideSMTPError: Boolean)gone after 19
Pending, tag 17.0, obsolete since 17: Replaced with the SetHideEmailSendingError function
IsSMTPEnabled(): Booleangone after 19
Pending, tag 17.0, obsolete since 17: Replaced with the IsAnyAccountRegistered in "Email Account" codeunit from "System Application".
IsGraphEnabled(): Booleangone after 23
Pending, tag 21.0, obsolete since 21: Microsoft Invoicing has been discontinued.
Send(ParmEmailItem: Record "Email Item"): Booleangone after 23
Pending, tag 17.0, obsolete since 17: Replaced with the overload containing Email Scenario
SendMailOrDownload(TempEmailItem: Record "Email Item" temporary; HideMailDialog: Boolean)gone after 23
Pending, tag 17.0, obsolete since 17: Replaced with the overload containing Email Scenario
GetSenderEmailAddress(): Text[250]gone after 19
Pending, tag 17.0, obsolete since 17: Sender will be chosen based on the scenario parameter to the Send function when using the email feature is enabled. To control which account will be used, use the overload containing Email Scenario.
GetSMTPCredentials(var SMTPMailSetup: Record "SMTP Mail Setup")gone after 19
Pending, tag 17.0, obsolete since 17: Not needed once email feature is enabled.

Events 7

[IntegrationEvent] OnAfterSentViaSMTP(var TempEmailItem: Record "Email Item" temporary; var SMTPMail: Codeunit "SMTP Mail"; var MailSent: Boolean; HideSMTPError: Boolean)gone after 19
Pending, tag 19.3, obsolete since 19: SMTP Mail codeunit has been obsolete
[IntegrationEvent] OnBeforeCheckValidEmailAddress(Recipients: Text; var IsHandled: Boolean)gone after 17
Pending, tag 15.3, obsolete since 17: Replaced by event OnBeforeCheckValidEmailAddresses
[IntegrationEvent] OnBeforeRunMailDialog(var TempEmailItem: Record "Email Item"; OutlookSupported: Boolean; SMTPSupported: Boolean; var ReturnValue: Boolean; var IsHandled: Boolean; var DoEdit: Boolean; var Cancelled: Boolean)gone after 22
Pending, tag 20.0, obsolete since 20: Email dialog has been removed, event no longer relevant.
[IntegrationEvent] OnBeforeSentViaSMTP(var TempEmailItem: Record "Email Item" temporary; var SMTPMail: Codeunit "SMTP Mail")gone after 19
Pending, tag 19.3, obsolete since 19: SMTP Mail codeunit has been obsolete
[IntegrationEvent] OnBeforeSendMailOnWinClient(var TempEmailItem: Record "Email Item" temporary)17-29
Pending, tag 27.0, obsolete since 27: This event is never raised.
[IntegrationEvent] OnAfterDeleteTempAttachments(var EmailItem: Record "Email Item")17-29
Pending, tag 27.0, obsolete since 27: This event is never raised.
[IntegrationEvent] OnSendViaSMTPOnBeforeSMTPMailAddAttachment(var TempEmailItem: Record "Email Item" temporary; var SMTPMail: Codeunit "SMTP Mail")gone after 19
Pending, tag 19.3, obsolete since 19: SMTP Mail codeunit has been obsolete