This skill documents the PinMe send_email endpoint and shows the Worker code to call it. A POST with a to address, a subject and an HTML body goes out with the project API key, and the sender is set to the project name at pinme.cloud.
It lists the environment variables PinMe injects into the Worker, the success and error responses for 400, 401 and 500, a verification code example, and a reusable error handler for PinMe API calls.
What You Get
- A sendEmail function for a Worker that posts to the PinMe send_email endpoint
- A request and response reference with the three accepted fields
- A table of 400, 401 and 500 errors and their messages
- A unified error handler that also covers network failures
Common Use Cases
- Sending a verification code from a Worker route
- Mailing a notification when a form is submitted
- Reusing one error handler for several PinMe platform calls
What Makes It Unique
It is tied to the PinMe platform, so no mail provider account is needed in the project: the Worker uses its injected API key and the sender address comes from the project name. It is the narrow companion of the main pinme skill, which holds a shorter version of the same example.
Under The Hood
The skill supplies code for a Worker that sends an HTTPS request to the PinMe platform API with the project API key from the Worker environment. It does not run commands or scripts. The agent writes or edits Worker TypeScript in your project, and each call sends real email from the project address once deployed.