How to send Email in octobercms after form submission? i created a mail from backend mail template in octobercms the mail code is contact::form.
// $data has name and email
$to = System\Models\MailSettings::get('[email protected]');
Mail::sendTo($to, 'contact::form', $data);
return true;
I'm getting this error :
\Components\System\Models\MailSettings' not found