Hello!
In file virtuenewsletter.class.php
$this->modx->mail->set(modMail::MAIL_BODY, $message);
$this->modx->mail->set(modMail::MAIL_SUBJECT, $subject);
$this->modx->mail->set(modMail::MAIL_FROM, $emailFrom);
$this->modx->mail->address('to', $emailTo);
$this->modx->mail->set(modMail::MAIL_FROM_NAME, $emailFromName);
$this->modx->mail->address('reply-to', $emailFrom);
$this->modx->mail->setHTML(true);
This code sent for email information about new Subscriber
In documentation modMail for add new user, you must:
What requirements must be met in order to install a new theme and a new message is sent only to the administrator?
I tried to create the conditions:
if($emailTo == '[email protected]'){
$this->modx->mail->set(modMail::MAIL_BODY, 'Administrator message');
$this->modx->mail->set(modMail::MAIL_SUBJECT, 'Administrator subject');
$this->modx->mail->set(modMail::MAIL_FROM, $emailFrom);
$this->modx->mail->address('to', 'administrator');
$this->modx->mail->set(modMail::MAIL_FROM_NAME, $emailFromName);
$this->modx->mail->address('reply-to', $emailFrom);
$this->modx->mail->setHTML(true);
} else {
$this->modx->mail->set(modMail::MAIL_BODY, $message);
$this->modx->mail->set(modMail::MAIL_SUBJECT, $subject);
$this->modx->mail->set(modMail::MAIL_FROM, $emailFrom);
$this->modx->mail->address('to', $emailTo);
$this->modx->mail->set(modMail::MAIL_FROM_NAME, $emailFromName);
$this->modx->mail->address('reply-to', $emailFrom);
$this->modx->mail->setHTML(true);
}
But it does not help...