I'm having an issue running this on MOdxCloud (latest version 0.3.1 on Revo2.2.14). No emails being delivered, no errors, warnings no nothing. Is anyone successfully using this on cloud? I am sending emails with Formit on other cloud sites. Just odd.
My call in my snippet looks like this:
// mail confirmation
$to = $email;
$subject = 'My Subject';
$modx->getService('mail', 'mail.modSwiftMailer');
$modx->mail->address('to', $to, 'Recipient');
$modx->mail->address('sender', $from);
$modx->mail->address('from', $from, $fromName);
$modx->mail->subject($subject);
$modx->mail->body($message);
$modx->mail->address('reply-to',$from,'Sender');
$modx->mail->send();