Object: EMail
- Updated2024-09-12
- 1 minute(s) read
Email > Objects > EMailService > Object: EMail
Object: EMail
The EMail object provides an email to send over an email server. Use the CreateEMail method to create the EMail object. Use the Send method to send emails.
![]() | Note The objects EMailService and EMail are only available in the 64-bit version of DIAdem. |
The following example creates an email and sends it without authentication.
VBScript | Python |
Dim oMyEMailService, oMyMail Set oMyEMailService = CreateEMailService("server.example.com") Set oMyMail = oMyEMailService.CreateEMail("FromUser <from.example@example.com>", "ToUser <to.example@example.com>", "This is the subject", "This is some text") Call oMyMail.Send