MailPilot is a powerful tool for sending personalized emails. This guide covers basic and advanced usage.
To send an email using MailPilot, follow these steps:
-
Prepare Your Recipient List: Ensure your recipients' list is in a JSON format. For example:
[ {"name": "John Doe", "email": "[email protected]"}, {"name": "Jane Smith", "email": "[email protected]"} ]
-
Write Your Email Template: Create an HTML email template. Incorporate placeholders such as
{{name}}
for personalization. -
Send the Email: Execute the following command:
mailpilot send --template path/to/template.html --recipients path/to/recipients.json --subject "Your Email Subject"
Replace the paths and subject with your actual template file, recipients file, and email subject.
MailPilot can be integrated with scheduling tools like cron to send emails at specified intervals.
You can use MailPilot in your Python scripts by importing and utilizing its classes and functions.