function send() { /* send mail */ mail::from('*****@*****.**'); mail::html(urldecode(params::get('u_name')) . ':' . urldecode(params::get('u_email')) . ': ' . urldecode(params::get('u_text'))); mail::subject('Сайтик шлет письмо'); mail::send('*****@*****.**'); }
function sendFeedback() { $mail_content = params::get('message'); $email = params::get('email'); if (!empty($mail_content) && !empty($email)) { mail::from($email); mail::html($mail_content); mail::subject(settings::get('feedback', 'feedback_subject')); mail::send(settings::get('feedback', 'feedback_email')); headers::url('/contacts/success/'); } }
function clear() { // default self::$charset = 'utf-8'; self::$type = 'html'; self::$from = false; self::$subject = false; self::$html = false; self::$text = false; self::$from_name = false; self::$from_email = false; self::$file = false; }