flyhopeSSL env MailerSend

This commit is contained in:
2025-07-21 23:45:28 +02:00
parent 66243863e4
commit 224f9e99f0
7 changed files with 1466 additions and 8 deletions

View File

@ -0,0 +1,23 @@
<?php
use MailerSend\MailerSend;
use MailerSend\Helpers\Builder\Recipient;
use MailerSend\Helpers\Builder\EmailParams;
$mailersend = new MailerSend(
['api_key' => getenv('API_KEY')]);
$recipients = [
new Recipient('p.hoppe@gmx.de', 'HoPe'),
];
$emailParams = (new EmailParams())
->setFrom('dog@flyhope.de')
->setFromName('FlyHoPe')
->setRecipients($recipients)
->setSubject('Dog Test')
->setText('This is the text content')
->setReplyTo('dog@flyhope.de')
->setReplyToName('DogFound');
$mailersend->email->send($emailParams);
?>