PHP: $MAIL=[ 'email_to'=>$this->email, 'charset'=>'utf8', 'name_comp'=>'Vixed.Ru', 'email_from'=>'no-reply@vixed.ru', 'mail_subject'=>'Смена пароля', 'username'=>$this->username, 'hash'=>$this->cpsign ]; $headers = "Content-type: text/html; charset=".$MAIL[charset]." \r\n"; $headers .= "From: ".$MAIL[name_comp]." <".$MAIL[email_from].">\r\n"; $headers .= "Reply-To: ".$MAIL[email_from]."\r\n"; mail($MAIL[email_to], $MAIL[mail_subject], $message, $headers);