i
Email Sending
For email sending, only the service class operation is defined, the model class is not necessary because Deyel data types are used. The service class is predefined in the Deyel SDK and does not need to be downloaded.
Service Class Content
Service allows the following operation to be performed:
Operation |
Description |
Parameters |
---|---|---|
sendmail(message, from, listTo, subject) |
Sends an email. |
String message: Email text
String from: Sender email
String[] listTo: List of recipient emails
String subject: Email subject |
Example of Use
The example contains the use of "EmailService" service class.
Standard email sending
In this example an email is sent where the body of the email, the subject, who sends it and those who receive it is specified.
The "EmailService" service is created to then execute the mail sending method sendMail(), using the required parameters.
EmailService emailService = new EmailService(getApiClient());
|