Codeunit 400 SMTP Mail in 17
- App
- Base Application
- Obsolete
- Pending 17.0. Replaced "Email Message" codeunit from "System Application".
Versions171819202122232425262728latest
Source-
Procedures, 52
| 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, Text, Text, Text, Boolean) | Boolean | public | Pending 15.0 | |||
| This method is obsolete. A new CreateMessage overload is available, with the following parameters (FromName: Text; FromAddress: Text; Recipients: List of [Text]; Subject: Text; Body: Text). | |||||||
| 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 | - | |||
| CheckValidEmailAddresses | (Text) | public | Pending 16.0 | ||||
| Please call CheckValidEmailAddresses from the Mail Management codeunit directly. | |||||||
| 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 | - | |||
Events, 4
| 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) | - |