-
Notifications
You must be signed in to change notification settings - Fork 3
Self Service Email
The Self Service Email tool generates a pre-filled email template that users can send via their email client. It automatically composes the email with specified recipients, subject, and body content. If an email client is not set up, the tool provides a fallback by saving the email as a plain text file for manual use.
To quickly compose and open an email, run the following command:
rocketman SelfServiceEmail \
--clientId ... \
--clientSecret ENC:... \
--to "helpdesk@example.com" \
--subject "Assistance Request" \
--body "Please provide details about your issue."This example creates an email addressed to helpdesk@example.com with the subject "Assistance Request" and the specified body content. The email will open in the user’s default email client.
Specifies the encrypted credentials for Jamf API authentication.
- Type: string
-
Example:
--clientId "..." OR --clientId "ENC:..."
Specifies the encrypted credentials for Jamf API authentication.
- Type: string
-
Example:
--clientSecret "..." OR --clientSecret "ENC:..."
Specifies the recipient's email address.
- Type: string
-
Example:
--to "helpdesk@example.com"
Sets the subject of the email.
- Type: string
-
Example:
--subject "Assistance Request"
Defines the main content of the email.
- Type: string
-
Example:
--body "Please provide details about your issue."
Specifies additional recipients to be copied on the email. Separate multiple addresses with commas.
- Type: string
- Default: None
-
Example:
--cc "teamlead@example.com,manager@example.com"
Adds blind carbon copy recipients, whose addresses are hidden from other recipients. Separate multiple addresses with commas.
- Type: string
- Default: None
-
Example:
--bcc "admin@example.com"
Simulates the email generation process without opening the email client.
- Type: flag
- Default: False
-
Example:
--simulate
Specifies the domain for settings in local or managed plists.
- Type: string
-
Default:
tech.rocketman.selfservicemail -
Example:
--domain "custom.domain.selfservicemail"
The following command creates an email with multiple recipients and additional information retrieved from Jamf API:
rocketman SelfServiceEmail \
--to "helpdesk@example.com" \
--cc "supervisor@example.com" \
--bcc "admin@example.com" \
--subject "Technical Support Needed" \
--body "Please assist with the following issue: ..." \
--clientId "..." \
--clientSecret "..."If the user’s default email client is not configured or fails to open, the email will be saved as a plain text file in /tmp/EmailTemplate.txt for manual use.
-
Fallback for Missing Email Client:
- If no email client is configured, the tool saves the email content as a text file. The file includes all recipients, subject, and body content, allowing users to manually copy and paste the details into another platform.
- The text file is saved to:
/tmp/EmailTemplate.txt.
-
Jamf API Integration:
- If
--encryptedCredentialsPlistPathare provided, the tool retrieves user and device information from Jamf Pro to append additional context to the email body. - Information added includes the user's full name, computer model, Jamf Pro Record ID, and Trellix GUID (if available).
- If
-
Simulation Mode:
- Use the
--simulateflag to validate configurations and view outputs without opening the email client.
- Use the
-
Platform Limitations:
- The tool relies on the
mailtoprotocol to interact with the default email client, which may behave differently across platforms. Ensure the default email client is properly configured.
- The tool relies on the
Inspired by @emily's Jamf Nation Post: Sending Emails via JSS
Tip
Professional setup, custom integrations, and SLA-backed support are available.
➡️ Learn more
-
Encrypt
Encrypt any string. -
App Setup Helper
Enables Screen Recording for apps. -
Break Glass Admin
Manages emergency admin accounts. -
Edit User Profile
Updates building and department info. -
FileVault Token Revoker
Removes FileVault tokens. -
Get Backdoor Admin Password From Keychain
Retrieves backdoor admin passwords. -
List All FileVault Enabled Users
Lists FileVault-enabled users. -
Rapid Response
Triggers scripts immediately. -
Rename Computer
Renames Macs via Jamf. -
Reset Jamf Connect Login Screen
Switches to macOS login. -
Secure Token Sharing Tool
Grants secure tokens. -
Self Service Email
Creates pre-filled emails. -
Temporary Admin
Grants temporary admin rights. -
Update User Info
Syncs user data with Jamf. -
Upload Jamf Logs
Uploads log files to Jamf. -
User Privilege Management
Adjusts user roles. -
Change Static Group Membership
Change Static Group Membership -
Fetch Database
Fetch Database