GlideEmailOutbound - Scoped

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:4分
  • 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()

    Instantiates a scoped GlideEmailOutbound object.

    表 : 1. Parameters
    Name Type Description
    None

    GlideEmailOutbound - addAddress(String type, String address)

    Adds the address to either the cc or bcc list.

    表 : 2. Parameters
    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.
    表 : 3. Returns
    Type Description
    void
    email.addAddress('cc', 'joe.employee@something.com');

    GlideEmailOutbound - addAddress(String type, String address, String displayName)

    Adds the recipient to either the cc or bcc list, but uses the display name instead of the address when showing the recipient.

    表 : 4. Parameters
    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.
    表 : 5. Returns
    Type Description
    void
    email.addAddress('bcc', 'joe.employee@something.com', 'dudley rocks');

    GlideEmailOutbound - getSubject()

    Returns the email's subject line.

    表 : 6. Parameters
    Name Type Description
    None
    表 : 7. Returns
    Type Description
    String The email's subject line.

    GlideEmailOutbound - getWatermark()

    Returns the email's watermark.

    表 : 8. Parameters
    Name Type Description
    None
    表 : 9. Returns
    Type Description
    String The email's watermark.
    var watermark = email.getWatermark();

    GlideEmailOutbound - setBody(String bodyText)

    Sets the body of the email.

    表 : 10. Parameters
    Name Type Description
    bodyText String The body of the email.
    表 : 11. Returns
    Type Description
    void
    email.setBody('Dear Sir, ...');

    GlideEmailOutbound - setFrom(String address)

    Sets the sender's address.

    表 : 12. Parameters
    Name Type Description
    address String The sender's email address.
    表 : 13. Returns
    Type Description
    void
    email.setFrom('joe.employee@something.com');

    GlideEmailOutbound - setReplyTo(String address)

    Sets the reply to address.

    表 : 14. Parameters
    Name Type Description
    address String The reply to email address.
    表 : 15. Returns
    Type Description
    void
    email.setReplyTo('joe.employee@something.com');

    GlideEmailOutbound - setSubject(String subject)

    Sets the email's subject line.

    表 : 16. Parameters
    Name Type Description
    subject String Text for the subject line.
    表 : 17. Returns
    Type Description
    void
    email.setSubject('Important Issues to discuss');