Codeunit 400 SMTP Mail in 19
- App
- Base Application
- Obsolete
- Pending 17.0. Replaced "Email Message" codeunit from "System Application".
Versions171819202122232425262728latest
Source-
Procedures, 54
| Name | Parameters | Returns | Access | Obsolete |
|---|---|---|---|---|
| Initialize | () | public | - | |
| AddFrom | (Text, Text) | Boolean | public | - |
| AddRecipients | (List) | public | - | |
| AddCC | (List) | public | - | |
| AddBCC | (List) | public | - | |
| AddSubject | (Text) | public | - | |
| AddBody | (Text) | public | - | |
| AddTextBody | (Text) | public | - | |
| AppendBody | (Text) | public | - | |
| AppendTextBody | (Text) | public | - | |
| GetFrom | () | Text | public | - |
| GetRecipients | (var List) | public | - | |
| GetCC | (var List) | public | - | |
| GetBCC | (var List) | public | - | |
| GetSubject | () | Text | public | - |
| GetBody | () | Text | public | - |
| GetLinkedResourcesCount | () | Integer | public | - |
| IsBodyHtmlFormatted | () | Boolean | public | - |
| CreateMessage | (Text, Text, List, Text, Text) | Boolean | public | - |
| CreateMessage | (Text, Text, List, Text, Text, Boolean) | Boolean | public | - |
| Send | () | Boolean | public | - |
| SendShowError | () | public | - | |
| AddAttachment | (Text, Text) | Boolean | public | - |
| AddAttachmentStream | (InStream, Text) | Boolean | public | - |
| IsEnabled | () | Boolean | public | - |
| GetLastSendMailErrorText | () | Text | public | - |
| GetSmtpErrorCodeFromResponse | (Text) | Text | public | - |
| GetFriendlyMessageFromSmtpErrorCode | (Text) | Text | public | - |
| HandleSMTPRegisterServiceConnection | (var Record Service Connection) | public | - | |
| ShowNotificationDetail | (Notification) | public | - | |
| GetO365SmtpServer | () | Text[250] | public | - |
| GetOutlookSmtpServer | () | Text[250] | public | - |
| GetGmailSmtpServer | () | Text[250] | public | - |
| GetYahooSmtpServer | () | Text[250] | public | - |
| GetDefaultSmtpPort | () | Integer | public | - |
| GetYahooSmtpPort | () | Integer | public | - |
| GetDefaultSmtpAuthType | () | Integer | public | - |
| OpenNotificationHyperlink | (Notification) | public | - | |
| AddTroubleshootingLinksToNotification | (var Notification) | public | - | |
| ApplyOffice365Smtp | (var Record SMTP Mail Setup) | public | - | |
| ApplyOutlookSmtp | (var Record SMTP Mail Setup) | public | - | |
| ApplyGmailSmtp | (var Record SMTP Mail Setup) | public | - | |
| ApplyYahooSmtp | (var Record SMTP Mail Setup) | public | - | |
| IsOffice365Setup | (var Record SMTP Mail Setup) | Boolean | public | - |
| IsOutlookSetup | (var Record SMTP Mail Setup) | Boolean | public | - |
| IsGmailSetup | (var Record SMTP Mail Setup) | Boolean | public | - |
| IsYahooSetup | (var Record SMTP Mail Setup) | Boolean | public | - |
| IsSmtpAuthErrorCode | (Text) | Boolean | public | - |
| IsSmtpRecipientErrorCode | (Text) | Boolean | public | - |
| IsSmtpSendAsErrorCode | (Text) | Boolean | public | - |
| GetOAuth2Credentials | (var Text, var Text) | internal | - | |
| AuthenticateWithOAuth2 | () | internal | - | |
| CheckOAuth2Authentication | () | internal | - | |
| GetUserName | (Text, var Text) | Boolean | internal | - |
Events, 5
| Kind | Name | Parameters | Obsolete |
|---|---|---|---|
| Integration event | OnBeforeSend | (var Record SMTP Mail Setup) | - |
| Integration event | OnAfterSend | (var Text) | - |
| Integration event | OnBeforeCreateMessage | (var Text, var Text, var List, var Text, var Text) | - |
| Integration event | OnBeforeAddRecipients | (var List, var Boolean) | - |
| Integration event | OnSMTPOAuth2Authenticate | (var Text, var Text, Text) | - |