add SMTP sender

This commit is contained in:
2026-05-27 07:29:29 +02:00
parent 982d754857
commit b0865368c8
19 changed files with 1384 additions and 35 deletions
@@ -12,6 +12,19 @@
<form action="<?php echo e(route('mailing.invia')); ?>" method="POST" enctype="multipart/form-data">
<?php echo csrf_field(); ?>
<?php if(isset($senderAccounts) && $senderAccounts->count() > 0): ?>
<div class="form-group">
<label for="mittente_id">Mittente</label>
<select name="mittente_id" id="mittente_id" class="form-control">
<option value="">Sistema predefinito</option>
<?php $__currentLoopData = $senderAccounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sender): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($sender->id); ?>"><?php echo e($sender->email_name ?: $sender->email_address); ?> &lt;<?php echo e($sender->email_address); ?>&gt;</option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
<small class="text-muted">Seleziona un mittente per l'invio. Usa "Sistema predefinito" per inviare con l'account email principale.</small>
</div>
<?php endif; ?>
<?php if($individui->count() > 0): ?>
<div class="form-group" id="destinatari-form-group">
<label>Destinatari selezionati</label>