| Method | Description |
|---|---|
| Send() | Sends an email message to an SMTP server for delivery |
The Send() method has the following parameters:
| Parameter | Type | Description |
|---|---|---|
| to | String | The Email recipients (separated by semicolon) |
| subject | String | The subject line |
| body | String | The body of the message |
And the following optional parameters:
| Parameter | Type | Description |
|---|---|---|
| from | String | The email of the sender |
| cc | String | The cc emails (separated by semicolon) |
| filesToAttach | Collection | Filenames |
| isBodyHtml | Boolean | True if the email body is in HTML |
| additionalHeaders | Collection | Additional headers |
Practice Excercise Practice now