Av@Tech India 22 Questions 29 Answers 1 Best Answer 84 Points View Profile 0 Av@Tech Learner Asked: June 24, 2020In: Daily Coding Problems SMTP-> ERROR: EHLO Not Accepted From Server 0 I tried to use PHP mailer but errors as follows. SMTP-> ERROR: EHLO Not Accepted From Server PHPphpmailerSMTP Share Facebook 1 Answer Voted Oldest Recent Random WebGuru India 12 Questions 130 Answers 2 Best Answers 290 Points View Profile WebGuru Explainer Added an answer on June 24, 2020 at 2:06 pm This answer was edited. Few Shared hosting will block you from using SSL with SMTP. Step 1: Try to change the port to 25 instead of 465. $mail = new PHPMailer(); $mail->Port = 25; Step 2: You can use the default PHP mail() function. mail(“email@example.com”,”subject”,”Test email”); 0 Reply Share Share Share on Facebook Share on Twitter Share on LinkedIn Share on WhatsApp Leave an answerCancel replyYou must login or register to add a new answer.