Skip to main content

PHPMailer Issue

Comments

4 comments

  • cPanelMichael
    $mail->Port = 587; // TCP port to connect to

    Hello, Have you tried switching to port 25 to see if you encounter the same error message? Also, I do see that debug mode is enabled. Is there any additional output you see when testing the script other than the error message you provided? Thank you.
    0
  • furquan
    Thank you so very much for your reply Michael, I shall have this checked out tomorrow when i reach office and will get back to you on this. Highly appreciate your response. Thank you,
    0
  • furquan
    Hello Michael, I went ahead and changed the port number to 25 and also changed the debug value to 0, and now this is what i see on the screen after i call the script in the browser :- Message could not be sent.Mailer Error: SMTP connect() failed. Troubleshooting " PHPMailer/PHPMailer Wiki " GitHub What next can be done, Please suggest. Thank you
    0
  • cPanelMichael
    Hello, It's actually more helpful to set the debug mode to "3" to ensure more verbose log details are provided. Do you have any firewall rules blocking local access to port 25? Thank you.
    0

Please sign in to leave a comment.