{"title":"Codeunit 9520 Mail Management, obsolete","url":"https://jonas-paprotka.de/ref/codeunit/9520-mail-management/obsolete/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":9520,"name":"Mail Management","app":"Base Application","versions":"17-29","url":"https://jonas-paprotka.de/ref/codeunit/9520-mail-management/","json":"https://jonas-paprotka.de/ref/codeunit/9520-mail-management.json"},"aspect":"obsolete","total":15,"rows":[{"kind":"procedure","name":"GetLastGraphError()","obsolete":{"state":"Pending","reason":"Microsoft Invoicing has been discontinued.","tag":"21.0"},"obsoleteSince":21,"last":23},{"kind":"procedure","name":"SetHideSMTPError(NewHideSMTPError: Boolean)","obsolete":{"state":"Pending","reason":"Replaced with the SetHideEmailSendingError function","tag":"17.0"},"obsoleteSince":17,"last":19},{"kind":"procedure","name":"IsSMTPEnabled()","obsolete":{"state":"Pending","reason":"Replaced with the IsAnyAccountRegistered in \"Email Account\" codeunit from \"System Application\".","tag":"17.0"},"obsoleteSince":17,"last":19},{"kind":"procedure","name":"IsGraphEnabled()","obsolete":{"state":"Pending","reason":"Microsoft Invoicing has been discontinued.","tag":"21.0"},"obsoleteSince":21,"last":23},{"kind":"procedure","name":"Send(ParmEmailItem: Record \"Email Item\")","obsolete":{"state":"Pending","reason":"Replaced with the overload containing Email Scenario","tag":"17.0"},"obsoleteSince":17,"last":23},{"kind":"procedure","name":"SendMailOrDownload(TempEmailItem: Record \"Email Item\" temporary; HideMailDialog: Boolean)","obsolete":{"state":"Pending","reason":"Replaced with the overload containing Email Scenario","tag":"17.0"},"obsoleteSince":17,"last":23},{"kind":"procedure","name":"GetSenderEmailAddress()","obsolete":{"state":"Pending","reason":"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.","tag":"17.0"},"obsoleteSince":17,"last":19},{"kind":"procedure","name":"GetSMTPCredentials(var SMTPMailSetup: Record \"SMTP Mail Setup\")","obsolete":{"state":"Pending","reason":"Not needed once email feature is enabled.","tag":"17.0"},"obsoleteSince":17,"last":19},{"kind":"event","name":"OnAfterSentViaSMTP(var TempEmailItem: Record \"Email Item\" temporary; var SMTPMail: Codeunit \"SMTP Mail\"; var MailSent: Boolean; HideSMTPError: Boolean)","obsolete":{"state":"Pending","reason":"SMTP Mail codeunit has been obsolete","tag":"19.3"},"obsoleteSince":19,"last":19},{"kind":"event","name":"OnBeforeCheckValidEmailAddress(Recipients: Text; var IsHandled: Boolean)","obsolete":{"state":"Pending","reason":"Replaced by event OnBeforeCheckValidEmailAddresses","tag":"15.3"},"obsoleteSince":17,"last":17},{"kind":"event","name":"OnBeforeRunMailDialog(var TempEmailItem: Record \"Email Item\"; OutlookSupported: Boolean; SMTPSupported: Boolean; var ReturnValue: Boolean; var IsHandled: Boolean; var DoEdit: Boolean; var Cancelled: Boolean)","obsolete":{"state":"Pending","reason":"Email dialog has been removed, event no longer relevant.","tag":"20.0"},"obsoleteSince":20,"last":22},{"kind":"event","name":"OnBeforeSentViaSMTP(var TempEmailItem: Record \"Email Item\" temporary; var SMTPMail: Codeunit \"SMTP Mail\")","obsolete":{"state":"Pending","reason":"SMTP Mail codeunit has been obsolete","tag":"19.3"},"obsoleteSince":19,"last":19},{"kind":"event","name":"OnBeforeSendMailOnWinClient(var TempEmailItem: Record \"Email Item\" temporary)","obsolete":{"state":"Pending","reason":"This event is never raised.","tag":"27.0"},"obsoleteSince":27,"last":29},{"kind":"event","name":"OnAfterDeleteTempAttachments(var EmailItem: Record \"Email Item\")","obsolete":{"state":"Pending","reason":"This event is never raised.","tag":"27.0"},"obsoleteSince":27,"last":29},{"kind":"event","name":"OnSendViaSMTPOnBeforeSMTPMailAddAttachment(var TempEmailItem: Record \"Email Item\" temporary; var SMTPMail: Codeunit \"SMTP Mail\")","obsolete":{"state":"Pending","reason":"SMTP Mail codeunit has been obsolete","tag":"19.3"},"obsoleteSince":19,"last":19}]}