require 'bootstrap/init.php'; $phpmailer = new PHPMailer\\PHPMailer\\PHPMailer(); $phpmailer->isSMTP(); $phpmailer->Host = 'sandbox.smtp.mailtrap.io'; $phpmailer->SMTPAuth = true; $phpmailer->Port = 2525; $phpmailer->Username = '0a5d2d59c276f1'; $phpmailer->Password = 'f94168622bb13f'; $mail->addAddress('a.developer8686@gmail.com', 'amirali verdinejad'); $mail->Subject = 'Here is the subject'; $mail->Body = 'This is the HTML message body in bold!'; $mail->AltBody = 'This is the body in plain text for non-HTML mail clients'; $mail->send();
سلام ببخشید مشکل کد کجاست؟