Add HTML email generator
This commit is contained in:
parent
35b999c8c6
commit
f1864d8841
14 changed files with 1748 additions and 16 deletions
55
mdtosendy_config/config.example.yml
Normal file
55
mdtosendy_config/config.example.yml
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
# Email Generator Configuration
|
||||
# Copy this file to config.yml and fill in your values
|
||||
|
||||
# Sendy API Configuration
|
||||
sendy:
|
||||
api_url: 'https://your-domain.com/api/campaigns/create.php'
|
||||
api_key: 'your-api-key-here'
|
||||
brand_id: '1'
|
||||
list_ids: 'your-list-id-here'
|
||||
|
||||
# Email Settings
|
||||
email:
|
||||
from_name: 'Your Name'
|
||||
from_email: 'your-email@example.com'
|
||||
reply_to: 'your-email@example.com'
|
||||
|
||||
# Campaign Settings
|
||||
campaign:
|
||||
track_opens: '1'
|
||||
track_clicks: '1'
|
||||
default_timezone: 'America/Chicago'
|
||||
|
||||
# Template Settings
|
||||
template:
|
||||
header_image_url: 'https://your-domain.com/img/email/header.jpg'
|
||||
header_image_alt: 'Email Header'
|
||||
header_image_width: 600
|
||||
header_image_height: 185
|
||||
signature_image_url: 'https://your-domain.com/img/signature.png'
|
||||
signature_image_alt: 'Signature'
|
||||
signature_image_width: 98
|
||||
signature_image_height: 98
|
||||
signature_text: '-Your Name'
|
||||
# Optional: Primary footer appears after signature, before unsubscribe section
|
||||
# Can contain Markdown or HTML (e.g., product links, promotional content)
|
||||
# primary_footer: |
|
||||
# [](example.com "Purchase on the Mac App Store") | [](example.com "Purchase directly")
|
||||
# Footer text - can contain Markdown and will preserve <webversion> and <unsubscribe> tags
|
||||
# Sendy will replace these tags when sending the email
|
||||
# footer_text: |
|
||||
# Copyright © 2025 Your Name<br>
|
||||
# 123 Main St<br>
|
||||
# City, State ZIP
|
||||
#
|
||||
# <webversion>View on the web</webversion> | <unsubscribe>Unsubscribe</unsubscribe>
|
||||
|
||||
# File Paths
|
||||
paths:
|
||||
template_file: 'email-template.html'
|
||||
styles_file: 'styles.css'
|
||||
|
||||
# Markdown Processor
|
||||
markdown:
|
||||
processor: 'apex' # or 'pandoc', 'kramdown', etc.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue