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

  1. Replace app.cakemail.com with your partner URL if you have a custom domain
  2. Replace the email and password values with the client's credentials from your database
  3. 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