· 7 years ago · Jan 29, 2019, 02:04 PM
1$mail = new PHPMailer(true);
2$mail->SetFrom('email address from the server', 'Title');
3$mail->AddAddress('...@gmail.com', '...@gmail.com');
4$mail->Subject = 'test';
5$mail->IsHTML(true);
6$mail->MsgHTML('<html>test</html>');
7if(!$mail->Send()) return false;