PHP
11
Вклад в тег
$mail = new \PHPMailer;
$mail->setFrom('email@from', 'from name');
$mail->addAddress('user@email','user name');
$mail->addReplyTo('user@email','user name');
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'my subject';
$mail->Body = " my message body";
if(!$mail->send()) {
$error[] = $mail->ErrorInfo;
}