how do i know what is the password and username for phpmailer for pset7. i am using the off campus smtp server smtp.comcast.net but everytime i try to send an email it gets rejected due to the need of authentication .
this is the error : cThe following From address failed: root@localhost : MAIL not accepted from server,550,5.1.0 Authentication required
SMTP server error: 5.1.0 Authentication required
SMTP server error: 5.1.0 Authentication required
.require_once("PHPMailer/class.phpmailer.php");
$mail = new PHPMailer();
// use your ISP's SMTP server (e.g., smtp.fas.harvard.edu if on campus or smtp.comcast.net if off campus and your ISP is Comcast)
$mail->IsSMTP(); $mail->Host = "smtp.comcast.net"; $mail->SetFrom("[email protected]"); $mail->AddAddress("[email protected]"); $mail->Subject = "hello, world"; $mail->Body = "hello, world"; if ($mail->Send() === false) die($mail->ErrorInfo . "\n");