---
title: "POST /mailer/send"
method: POST
path: "/mailer/send"
---

# POST /mailer/send

`POST /mailer/send`

## Request

- Base URL: `https://www.rcac.purdue.edu/api`
- URL: `https://www.rcac.purdue.edu/api/mailer/send`
- Auth: none declared
- TypeScript: <https://skmtc.dev/purdue/apis/rcac-api/docs/mailer/send/post.ts> (a function with typed inputs; its response is checked against the schema)

Post a message

## Request body `*/*`

- object
  - `subject` string, required: Message subject
  - `body` string, required: Message body
  - `user` string, required: A comma-separated list of user IDs, usernames, or email addresses
  - `group` string: A comma-separated list of group IDs to email all users in those groups
  - `role` string: A comma-separated list of role IDs to email all users in those roles
  - `fromemail` string: An email address the message is from. Defaults to global site setting.
  - `fromname` string: A name the message is from. Defaults to global site setting.
  - `cc` string: A comma-separated list of user IDs or email addresses
  - `bcc` string: A comma-separated list of user IDs or email addresses
  - `alert` string: An alert level to use for styling HTML portions of emails

## Response `200`

Successful entry read

## Other responses

- `404`: Record not found

---

[API](https://skmtc.dev/purdue/apis/rcac-api.md) - [All operations](https://skmtc.dev/purdue/apis/rcac-api/llms.txt) - [OpenAPI document](https://skmtc.dev/purdue/apis/rcac-api/revisions/b6b910de69b0?raw)
