- Published on
Send emails to your customers when they login on a new device
A brand new feature has landed in Loginllama!
You can now send emails to customers when they login on a new browser or device.
This is as simple as a single click. And don’t worry, we don’t store or log the email addresses you send us.
This feature is activated by default for new accounts. For existing accounts, simply login, go to settings on the left and start customising your emails! You have complete control over the subject, sender, and body text.
But how do you get emails to send to customer?
Simply send along the email_address
parameter and you’re away. Then any time loginllama detects a customer logging in from a new browser, or device, we will email them. Please note: because we do not store the email address then it needs to be sent with each request.
curl \
-X POST https://loginllama.app/api/v1/login/check \
-H "X-API-KEY: $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ip_address":"192.168.1.1",
"user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
"identity_key":"user_1234",
"email_address":"customer@your-site.com"
}'
To use this using the LoginLlama client SDK's, you will need to update them via your package manager.
We hope this makes it even easier to integrate with Loginllama! New features for email customisation are coming soon!