Partner Login Integration
As a Cakemail partner, you can offer a Login to Cakemail button inside your application or control panel, giving your clients direct access to their Cakemail accounts.
Implementation
Use an HTML form that posts credentials to the Cakemail login endpoint:
<form action="https://app.cakemail.com/api/login" method="POST" target="_blank">
<input type="hidden" name="email" value="client@example.com" />
<input type="hidden" name="password" value="client-password" />
<input type="submit" value="Open Email Marketing" />
</form>
Steps
- Replace
app.cakemail.comwith your partner URL if you have a custom domain - Replace the
emailandpasswordvalues with the client's credentials from your database - Customize the submit button with CSS to match your application's design
Security
The form posts credentials directly, so it should only be rendered server-side where you control the credential values. Never expose client passwords in client-side JavaScript.
Related
- Partner API guide — managing sub-accounts programmatically