mailgun-optin-cli
Version:
CLI tool for sending opt-in confirmation emails via Mailgun
6 lines • 2.61 kB
JSON
{
"subject": "Please confirm your subscription to {company_name}",
"text": "Hello {first_name},\n\nThank you for subscribing to our newsletter! To complete your subscription and ensure you receive our updates, please confirm your email address by clicking the link below:\n\n{confirmation_url}\n\nIf you did not subscribe to our newsletter, you can safely ignore this email.\n\nBest regards,\nThe {company_name} Team\n\n---\nThis email was sent to {email}. If you have any questions, please contact us at support@{domain}.",
"html": "\n<html>\n<head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Confirm Your Subscription</title>\n <style>\n body { font-family: Arial, sans-serif; line-height: 1.6; color: #333; padding: 20px; }\n .header { background-color: #f8f9fa; padding: 20px; text-align: center; border-radius: 8px; margin-bottom: 20px; }\n .content { padding: 20px 0; }\n .button { display: inline-block; background-color: #007bff; color: white; padding: 12px 24px; text-decoration: none; border-radius: 5px; margin: 20px 0; }\n .button:hover { background-color: #0056b3; }\n .footer { font-size: 12px; color: #666; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }\n </style>\n</head>\n<body>\n <div class=\"header\">\n <h1>Welcome to {company_name}!</h1>\n </div>\n \n <div class=\"content\">\n <p>Hello {first_name},</p>\n \n <p>Thank you for subscribing to our newsletter! To complete your subscription and ensure you receive our updates, please confirm your email address by clicking the button below:</p>\n \n <p style=\"text-align: center;\">\n <a href=\"{confirmation_url}\" class=\"button\">Confirm My Subscription</a>\n </p>\n \n <p>If the button doesn't work, you can also copy and paste this link into your browser:</p>\n <p style=\"word-break: break-all; background-color: #f8f9fa; padding: 10px; border-radius: 4px;\">{confirmation_url}</p>\n \n <p>If you did not subscribe to our newsletter, you can safely ignore this email.</p>\n \n <p>Best regards,<br>The {company_name} Team</p>\n </div>\n \n <div class=\"footer\">\n <p>This email was sent to {email}.</p>\n <p>If you have any questions, please contact us at support@{domain}.</p>\n </div>\n</body>\n</html>",
"confirmationUrl": "https://yourdomain.com/confirm?token={confirmation_token}&email={email}&source=newsletter"
}