<?phprequire_once 'vendor/autoload.php';$lettermint = new Lettermint\Lettermint('your-api-key');
Send your first email:
Copy
$response = $lettermint->email ->from('John Doe <john@yourdomain.com>') ->to('recipient@example.com') ->subject('Hello from Lettermint!') ->text('Hello! This is a test email.') ->send();echo "Email sent with ID: " . $response->id;
$lettermint->email ->from('John Doe <john@yourdomain.com>') ->to('recipient@example.com') ->subject('Your acount is ready!') ->html('<h1>Welcome!</h1><p>Thanks for signing up.</p>') ->text('Welcome! Thanks for signing up.') ->send();