---
sourceDocument: Australia API Reference
sourceDocumentLink: https://www.servicenow.com/docs/r/api-reference

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# GlideEmailOutbound - Scoped

# GlideEmailOutbound - Scoped {#ariaid-title1}

* Release version: Australia
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The scoped GlideEmailOutbound API implements the email object for
scoped applications. You can use the GlideEmailOutbound methods with the email
global object available in mail scripts. The email object behaves identically for global and
scoped applications.

## GlideEmailOutbound - GlideEmailOutbound() {#ariaid-title2}

Instantiates a scoped GlideEmailOutbound object.
{#r_ScopedGlideEmailOutbound-GlideEmailOutbound__table_mmk_bst_jt__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 1. Parameters]

{#r_ScopedGlideEmailOutbound-GlideEmailOutbound__table_mmk_bst_jt}

## GlideEmailOutbound - addAddress(String type, String address) {#ariaid-title3}

Adds the address to either the cc or bcc list.
{#r_ScopedGlideEmailOutbound-addAddress_String_String__table_czz_g5t_jt__entry__3}

| Name | Type | Description |
|-|-|-|
| type | String | Either cc or bcc, determines the list to which the address is added. |
| address | String | The recipient's email address. |
[Table 2. Parameters]

{#r_ScopedGlideEmailOutbound-addAddress_String_String__table_czz_g5t_jt} {#r_ScopedGlideEmailOutbound-addAddress_String_String__table_dzz_g5t_jt__entry__2}

| Type | Description |
|-|-|
| void |   |
[Table 3. Returns]

{#r_ScopedGlideEmailOutbound-addAddress_String_String__table_dzz_g5t_jt}  

    email.addAddress('cc', 'joe.employee@something.com');

## GlideEmailOutbound - addAddress(String type, String address, String displayName) {#ariaid-title4}

Adds the recipient to either the cc or bcc list, but uses the display name instead of
the address when showing the recipient.
{#r_ScopedGlideEmailOutbound-addAddress_String_String_String__table_j4d_x5t_jt__entry__3}

| Name | Type | Description |
|-|-|-|
| type | String | Either cc or bcc, determines the list to which the address is added. |
| address | String | The recipient's email address. |
| displayName | String | The name to be shown instead of the email address. |
[Table 4. Parameters]

{#r_ScopedGlideEmailOutbound-addAddress_String_String_String__table_j4d_x5t_jt} {#r_ScopedGlideEmailOutbound-addAddress_String_String_String__table_k4d_x5t_jt__entry__2}

| Type | Description |
|-|-|
| void |   |
[Table 5. Returns]

{#r_ScopedGlideEmailOutbound-addAddress_String_String_String__table_k4d_x5t_jt}  

    email.addAddress('bcc', 'joe.employee@something.com', 'dudley rocks');

## GlideEmailOutbound - getSubject() {#ariaid-title5}

Returns the email's subject line.
{#r_ScopedGlideEmailOutbound-getSubject__table_wvs_qst_jt__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 6. Parameters]

{#r_ScopedGlideEmailOutbound-getSubject__table_wvs_qst_jt} {#r_ScopedGlideEmailOutbound-getSubject__table_xvs_qst_jt__entry__2}

| Type | Description |
|-|-|
| String | The email's subject line. |
[Table 7. Returns]

{#r_ScopedGlideEmailOutbound-getSubject__table_xvs_qst_jt}

## GlideEmailOutbound - getWatermark() {#ariaid-title6}

Returns the email's watermark.
{#SGEO-getWatermark__table_cv2_243_2cb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 8. Parameters]

{#SGEO-getWatermark__table_cv2_243_2cb} {#SGEO-getWatermark__table_dv2_243_2cb__entry__2}

| Type | Description |
|-|-|
| String | The email's watermark. |
[Table 9. Returns]

{#SGEO-getWatermark__table_dv2_243_2cb}  

    var watermark = email.getWatermark();

## GlideEmailOutbound - setBody(String bodyText) {#ariaid-title7}

Sets the body of the email.
{#r_ScopedGlideEmailOutbound-setBody_String__table_ppq_kvt_jt__entry__3}

| Name | Type | Description |
|-|-|-|
| bodyText | String | The body of the email. |
[Table 10. Parameters]

{#r_ScopedGlideEmailOutbound-setBody_String__table_ppq_kvt_jt} {#r_ScopedGlideEmailOutbound-setBody_String__table_qpq_kvt_jt__entry__2}

| Type | Description |
|-|-|
| void |   |
[Table 11. Returns]

{#r_ScopedGlideEmailOutbound-setBody_String__table_qpq_kvt_jt}  

    email.setBody('Dear Sir, ...');

## GlideEmailOutbound - setFrom(String address) {#ariaid-title8}

Sets the sender's address.
{#r_ScopedGlideEmailOutbound-setFrom_String__table_j3b_ltt_jt__entry__3}

| Name | Type | Description |
|-|-|-|
| address | String | The sender's email address. |
[Table 12. Parameters]

{#r_ScopedGlideEmailOutbound-setFrom_String__table_j3b_ltt_jt} {#r_ScopedGlideEmailOutbound-setFrom_String__table_k3b_ltt_jt__entry__2}

| Type | Description |
|-|-|
| void |   |
[Table 13. Returns]

{#r_ScopedGlideEmailOutbound-setFrom_String__table_k3b_ltt_jt}  

    email.setFrom('joe.employee@something.com');

## GlideEmailOutbound - setReplyTo(String address) {#ariaid-title9}

Sets the reply to address.
{#r_ScopedGlideEmailOutbound-setReplyTo_String__table_hn2_vtt_jt__entry__3}

| Name | Type | Description |
|-|-|-|
| address | String | The reply to email address. |
[Table 14. Parameters]

{#r_ScopedGlideEmailOutbound-setReplyTo_String__table_hn2_vtt_jt} {#r_ScopedGlideEmailOutbound-setReplyTo_String__table_in2_vtt_jt__entry__2}

| Type | Description |
|-|-|
| void |   |
[Table 15. Returns]

{#r_ScopedGlideEmailOutbound-setReplyTo_String__table_in2_vtt_jt}  

    email.setReplyTo('joe.employee@something.com');

## GlideEmailOutbound - setSubject(String subject) {#ariaid-title10}

Sets the email's subject line.
{#r_ScopedGlideEmailOutbound-setSubject_String__table_rny_1tt_jt__entry__3}

| Name | Type | Description |
|-|-|-|
| subject | String | Text for the subject line. |
[Table 16. Parameters]

{#r_ScopedGlideEmailOutbound-setSubject_String__table_rny_1tt_jt} {#r_ScopedGlideEmailOutbound-setSubject_String__table_sny_1tt_jt__entry__2}

| Type | Description |
|-|-|
| void |   |
[Table 17. Returns]

{#r_ScopedGlideEmailOutbound-setSubject_String__table_sny_1tt_jt}  

    email.setSubject('Important Issues to discuss');


